:root {
  --primary-color: #3b82f6; /* Blue 500 */
  --primary-dark: #2563eb; /* Blue 600 */
  --gray-50: #f9fafb;    /* Gray 50 */
  --gray-100: #f3f4f6;   /* Gray 100 */
  --gray-200: #e5e7eb;   /* Gray 200 */
  --gray-400: #9ca3af;   /* Gray 400 */
  --gray-600: #4b5563;   /* Gray 600 */
  --gray-800: #1f2937;   /* Gray 800 */
  --green-500: #22c55e;  /* Green 500 */
  --red-100: #fee2e2;    /* Red 100 */
  --red-200: #fecaca;    /* Red 200 */
  --shadow: 0 1px 2px rgba(0,0,0,0.05);
  --radius: 0.375rem; /* Slightly larger radius */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--gray-100); /* Fallback background */
  color: var(--gray-800);
  line-height: 1.6;
  /* Allow scrolling by default for setup pages */
  overflow: auto;
  position: relative;
  min-height: 100vh;
}

/* Add a class for when bubbles are visible to disable scrolling */
body.bubble-mode {
  overflow: hidden;
}

/* Initial forms container */
main.container#main-content {
  position: relative; /* Keep this relative for stacking */
  z-index: 20; /* Above bubbles, below overlays */
  padding-top: 2rem; /* Space from top */
  max-width: 800px; /* Add max-width for better readability */
  margin: 0 auto; /* Center the container */
  padding-left: 1rem; /* Add padding for mobile */
  padding-right: 1rem;
}

/* Card styles only apply to initial Create/Join forms now */
.card {
  position: relative;
  background-color: #fff; /* Keep card opaque */
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Add subtle shadow back */
}

.section {
  margin-bottom: 1.5rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem; /* Increased size for better visibility */
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1rem; /* Increased for better readability */
  color: var(--gray-600);
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.75rem; /* Increased padding for better touch targets */
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background-color: var(--gray-50);
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  font-size: 1rem; /* Increased font size for mobile readability */
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

textarea {
    min-height: 80px;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.25rem; /* Increased for better touch targets */
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem; /* Increased font size */
  transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.75rem 1.25rem; /* Increased for better touch targets */
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem; /* Increased font size */
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

/* Option input styling adjustments */
.option-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem; /* Increased spacing */
}

.option-text {
    flex-grow: 1;
}

.initial-votes {
    width: 70px; /* Fixed width for votes input */
}

.remove-option {
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem; /* Increased for better touch target */
    line-height: 1;
}

.remove-option:hover {
    color: var(--gray-600);
}

#add-option {
    margin-top: 0.75rem;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.checkbox-group input[type="checkbox"] {
    width: 1.25rem; /* Increased for better touch target */
    height: 1.25rem;
    accent-color: var(--primary-color);
}
.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 1rem;
    color: var(--gray-800);
}

small {
    display: block;
    font-size: 0.85rem; /* Slightly increased */
    color: var(--gray-400);
    margin-top: 0.25rem;
}

/* Removed old option-card styles */

.voter-badge {
  margin-top: 1rem;
  background: var(--gray-100);
  padding: 0.5rem;
  border-radius: var(--radius);
  display: inline-block;
}

.hidden {
  display: none !important;
}

.copy-link {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.copy-link input {
  flex: 1;
  padding: 0.75rem; /* Increased padding */
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background-color: var(--gray-50);
  font-size: 0.95rem;
}

.copy-link button {
  background: var(--gray-200);
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--gray-600);
  font-size: 1.1rem; /* Increased size */
  transition: background-color 0.2s ease-in-out;
}

.copy-link button:hover {
    background: var(--gray-400);
    color: #fff;
}

/* Horizontal bar chart options - Minimalist adjustments */
#options-container {
  width: 100%;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-bar {
  width: 100%;
  height: 45px;
  background-color: var(--gray-100);
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  border: 1px solid transparent;
}

.option-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.option-bar.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.bar-fill {
  height: 100%;
  background-color: var(--green-500);
  border-radius: var(--radius);
  transition: width 0.5s ease-out;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.bar-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Text outside the bar fill for options with 0 votes */
.bar-text-outside {
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-600);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
}

.option-text {
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
}

.vote-count {
  font-size: 0.85em;
  opacity: 0.9;
  min-width: 40px;
  text-align: right;
}

/* Animation for eliminated option notice */
.pulse-red {
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% {
      background-color: var(--red-100);
      border-color: var(--red-200);
  }
  50% {
      background-color: var(--red-200);
      border-color: var(--red-100);
  }
  100% {
      background-color: var(--red-100);
      border-color: var(--red-200);
  }
}

/* Session timers styling */
.session-timers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 1rem 0;
  padding: 0.75rem;
  background-color: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  color: var(--gray-600);
  padding: 5px;
  border-radius: var(--radius);
}

.timer-visual {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer i {
  position: absolute;
  font-size: 12px;
  color: var(--primary-color);
  z-index: 2;
}

.timer-circle {
  width: 24px;
  height: 24px;
  transform: rotate(-90deg);
  position: absolute;
}

.timer-circle-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 2.8;
}

.timer-circle-fill {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.1s ease;
}

/* Suggestion timer uses a different color */
#suggestion-timer-container .timer-circle-fill {
  stroke: #f59e0b; /* Amber color for suggestion phase */
}

#suggestion-timer-container i {
  color: #f59e0b;
}

/* Poll timer uses primary blue color */
#poll-timer-container .timer-circle-fill {
  stroke: var(--primary-color);
}

#poll-timer-container i {
  color: var(--primary-color);
}

.timer span:first-of-type {
  min-width: 60px;
}

/* Add animation for completed timers */
.timer.completed .timer-circle-fill {
  stroke: var(--green-500);
}

.timer.completed i {
  color: var(--green-500);
}

/* Alert styling */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

/* Notification styling */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gray-800);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    bottom: 30px;
}

/* === Bubble Simulation Styles === */

/* Full Screen Bubble Area */
#bubble-simulation-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background-color: #eef4f8;
    overflow: hidden;
    pointer-events: none;
}

/* Base Bubble Style */
.bubble {
    position: absolute;
    border-radius: 50% !important;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    will-change: transform;
    z-index: 10;
}

/* Bubble Highlight */
.bubble:before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 25%;
    height: 25%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 11;
    pointer-events: none;
}

/* Bubble Text Styling */
.bubble-text {
    position: relative;
    z-index: 12;
    color: rgba(0, 0, 0, 0.75);
    text-align: center;
    font-family: sans-serif;
    user-select: none;
    line-height: 1.15;
    padding: 5px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-line;
    word-break: break-word;
}

/* State Styles */
.bubble.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    z-index: 15;
}

.bubble.decayed {
    opacity: 0.25;
    border-color: transparent !important;
    box-shadow: none !important;
    z-index: 5;
}

.bubble.winner {
    border-color: var(--green-500);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
    opacity: 1.0 !important;
    z-index: 14;
}

.bubble.winner.decayed {
    opacity: 1.0 !important;
}

/* Voteqi Logo - renamed to Ballotaj */
#voteqi-logo {
    position: fixed;
    top: 10px;
    left: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-600);
    z-index: 50;
    opacity: 0.7;
}

/* === Voting Screen Overlays === */

.voting-overlay {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    pointer-events: none;
}
.voting-overlay > * {
     pointer-events: auto;
}

/* Top Centered Title/Desc */
.voting-overlay.top-center {
    top: 15px;
    text-align: center;
    max-width: 80%;
}
.overlay-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}
.overlay-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

/* Change top-right timers to bottom-right position */
.voting-overlay.top-right {
    left: auto;
    right: 15px;
    top: auto; /* Remove top positioning */
    bottom: 20px; /* Add bottom positioning */
    transform: none;
    width: auto;
}
.overlay-timers {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.overlay-timers .timer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--gray-700);
    font-weight: 500;
    white-space: nowrap;
}
.overlay-timers .timer i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
}

/* Voting overlay bottom controls - fixing the white bar issue */
.voting-overlay.bottom-controls {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    width: auto;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    bottom: 20px;
    left: 15px;
    transform: none;
}

/* Ensure we don't have any weird positioning */
.voting-overlay.bottom-controls > div {
    position: relative;
}

/* Floating action buttons */
.floating-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 100;
}

.floating-action-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.floating-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Copy button styling - green for sharing */
.copy-btn {
    background-color: #10B981; /* Green color */
}

.copy-btn:hover {
    background-color: #059669; /* Darker green */
}

/* Copy tooltip */
.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gray-800);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--gray-800) transparent transparent transparent;
}

.copy-btn.copied .copy-tooltip {
    opacity: 1;
}

/* Completely redesign the option form expanded */
.option-form-expanded {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 320px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-form-expanded input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.option-form-expanded input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    color: white;
}

.btn-action.submit-btn {
    background-color: #22c55e; /* Green */
}

.btn-action.submit-btn:hover {
    background-color: #16a34a;
}

.btn-action.cancel-btn {
    background-color: #9ca3af; /* Gray */
}

.btn-action.cancel-btn:hover {
    background-color: #6b7280;
}

.btn-action:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Fix button containers */
.button-container {
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Media queries adjustments */
@media (max-width: 768px) {
    .option-form-expanded {
        width: 85%;
        padding: 14px;
    }
    
    .btn-action {
        width: 40px;
        height: 40px;
    }
    
    .voting-overlay.top-right {
        right: 10px;
        bottom: 15px; /* Adjust for mobile */
    }
    
    .voting-overlay.bottom-controls {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .option-form-expanded {
        width: 92%;
        padding: 12px;
        bottom: 75px;
    }
    
    .btn-action {
        width: 38px;
        height: 38px;
    }
    
    .voting-overlay.bottom-controls {
        gap: 10px;
    }
}

/* Media queries for better mobile responsiveness */
@media (max-width: 768px) {
    h2 {
        font-size: 1.4rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .option-input-group {
        flex-wrap: wrap;
    }
    
    .option-text {
        flex: 1 1 100%;
        margin-bottom: 8px;
    }
    
    .initial-votes {
        width: calc(100% - 50px);
    }
    
    /* Voting overlay adjustments */
    .voting-overlay.top-center {
        max-width: 90%;
    }
    
    .overlay-title {
        font-size: 1.2rem;
    }
    
    .overlay-description {
        font-size: 0.85rem;
    }
    
    .voting-overlay.top-right {
        right: 10px;
        bottom: 15px; /* Adjust for mobile */
    }
    
    /* Voteqi Logo (Ballotaj) - smaller on mobile */
    #voteqi-logo {
        font-size: 1rem;
        top: 8px;
        left: 10px;
    }
    
    .timer-visual {
        width: 20px;
        height: 20px;
    }
    
    .timer-circle {
        width: 20px;
        height: 20px;
    }
    
    .timer i {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-top: 5px;
    }
    
    /* Stack the suggestion form on small screens */
    #custom-option-form .option-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    #custom-option-form button {
        margin-top: 8px;
    }
}

/* Replace the existing option form styles with these new clean styles */

/* Popup option form - completely new styling approach */
.option-popup-form {
    position: absolute;
    bottom: 70px;
    left: 0; /* Align with the button that triggers it */
    transform: none; /* Remove the centering transform */
    width: 280px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 110;
    overflow: hidden;
}

.popup-form-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-form-content input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.popup-form-content input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.popup-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    color: white;
}

.popup-btn.submit-btn {
    background-color: #22c55e; /* Green */
}

.popup-btn.submit-btn:hover {
    background-color: #16a34a;
}

.popup-btn.cancel-btn {
    background-color: #9ca3af; /* Gray */
}

.popup-btn.cancel-btn:hover {
    background-color: #6b7280;
}

.popup-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* For the floating action buttons */
.floating-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 100;
}

.floating-action-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.floating-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Bottom controls layout */
.voting-overlay.bottom-controls {
    bottom: 20px;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    width: auto;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    left: 15px;
    transform: none;
}

/* Button container reset */
.button-container {
    position: relative;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Media queries adjustments */
@media (max-width: 480px) {
    .option-popup-form {
        width: 250px;
    }
    
    .popup-form-content {
        padding: 12px;
    }
    
    .popup-btn {
        width: 40px;
        height: 40px;
    }
    
    .floating-action-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* Optional: Add a small adjustment for screen edge */
@media (max-width: 350px) {
    .option-popup-form {
        left: -10px; /* Slight adjustment to prevent it going off-screen on very small devices */
        width: 250px; /* Make it a bit smaller on very small screens */
    }
}