/* === CSS VARIABLES === */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --accent-color: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
  }
  
  /* === ANIMATIONS & KEYFRAMES === */
  @keyframes fadeIn {
      0% { opacity: 0; transform: translateY(10px); }
      100% { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes slideInFromLeft {
      0% { opacity: 0; transform: translateX(-30px); }
      100% { opacity: 1; transform: translateX(0); }
  }
  
  @keyframes slideInFromRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}


    @keyframes slideInRight {
        0% { 
            opacity: 0; 
            transform: translateX(100%);
        }
        100% { 
            opacity: 1; 
            transform: translateX(0);
        }
    }

    @keyframes slideOutRight {
        0% { 
            opacity: 1; 
            transform: translateX(0);
        }
        100% { 
            opacity: 0; 
            transform: translateX(100%);
        }
    }
  
  @keyframes scaleIn {
      0% { opacity: 0; transform: scale(0.9); }
      100% { opacity: 1; transform: scale(1); }
  }
  
  @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
  }
  
  @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-10px); }
      75% { transform: translateX(10px); }
  }
  
  @keyframes ripple {
      0% { transform: scale(0); opacity: 0.6; }
      100% { transform: scale(2.5); opacity: 0; }
  }
  
  @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
  }
  
  @keyframes checkmark {
      0% { transform: scale(0) rotate(-45deg); }
      50% { transform: scale(1.2) rotate(-45deg); }
      100% { transform: scale(1) rotate(-45deg); }
  }
  
  @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
  }
  
  @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
  }
  
  @keyframes glow {
      0%, 100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.5); }
      50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.8), 0 0 30px rgba(37, 99, 235, 0.6); }
  }
  
  @keyframes slideDown {
      0% { max-height: 0; opacity: 0; }
      100% { max-height: 500px; opacity: 1; }
  }
  
  @keyframes bounceIn {
      0% { opacity: 0; transform: scale(0.3); }
      50% { opacity: 1; transform: scale(1.05); }
      70% { transform: scale(0.9); }
      100% { transform: scale(1); }
  }
  
  @keyframes shimmer {
      0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
      100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  }
  
  /* === BASE STYLES === */
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      transition: all 0.3s ease-in-out;
  }
  
  body {
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
      background-size: 200% 200%;
      animation: gradientShift 15s ease infinite;
      overflow-x: hidden;
      color: var(--text-dark);
      line-height: 1.6;
  }
  
  @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
      }
  }
  
  /* === HEADER STYLES === */
  #mainHeader {
      width: 100%;
      background: var(--background-white);
      box-shadow: var(--shadow-md);
      padding: 1rem 2rem;
      display: none;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 1000;
      animation: fadeIn 0.8s ease-out;
  }
  
  .header-left {
      display: flex;
      align-items: center;
      gap: 1rem;
  }
  
  .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
  }
  
  .logo-icon {
      font-size: 1.75rem;
      color: var(--primary-color);
  }
  
  .logo-text {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text-dark);
  }
  
  .user-menu {
      display: flex;
      align-items: center;
      gap: 1rem;
  }
  
  .user-info {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--text-light);
      font-size: 0.9rem;
  }
  
  .user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--primary-color);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 0.8rem;
  }
  
  .logout-btn {
      padding: 0.5rem 1rem;
      background: var(--primary-color);
      color: white;
      border: none;
      border-radius: var(--radius-md);
      cursor: pointer;
      font-weight: 500;
      font-size: 0.9rem;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
  }
  
  .logout-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
  }
  
  /* === AUTHENTICATION CONTAINER === */
  #authContainer {
      width: 90%;
      max-width: 440px;
      padding: 2.5rem 2rem;
      background: var(--background-white);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border-light);
      box-shadow: var(--shadow-xl);
      border-radius: var(--radius-xl);
      text-align: center;
      animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  #authContainer:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-xl);
  }
  
  .auth-header {
      margin-bottom: 2rem;
  }
  
  .auth-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: var(--primary-color);
  }
  
  #authContainer h2 {
      font-size: 1.75rem;
      margin-bottom: 0.5rem;
      color: var(--text-dark);
      font-weight: 700;
  }
  
  .auth-subtitle {
      color: var(--text-light);
      font-size: 1rem;
      margin-bottom: 2rem;
  }
  
  #message {
      margin-top: 1rem;
      padding: 0.75rem 1rem;
      border-radius: var(--radius-md);
      font-size: 0.9rem;
      min-height: 20px;
      transition: all 0.3s ease;
      text-align: left;
  }
  
  #message.error {
      background: #fef2f2;
      color: var(--error-color);
      border-left: 4px solid var(--error-color);
      animation: shake 0.5s ease;
  }
  
  #message.success {
      background: #f0fdf4;
      color: var(--success-color);
      border-left: 4px solid var(--success-color);
  }
  
  #message.info {
      background: #eff6ff;
      color: var(--info-color);
      border-left: 4px solid var(--info-color);
  }
  
  /* === INPUT & BUTTON STYLES === */
  .input-group {
      margin-bottom: 1.25rem;
      text-align: left;
  }
  
  .input-label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: var(--text-dark);
      font-size: 0.9rem;
  }
  
  input {
      width: 100%;
      padding: 0.875rem 1rem;
      margin: 0;
      border: 1px solid var(--border-medium);
      border-radius: var(--radius-md);
      font-size: 1rem;
      background-color: var(--background-white);
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
      overflow: hidden;
      font-family: 'Inter', sans-serif;
  }
  
  .input-with-icon {
      position: relative;
  }
  
  .input-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-lighter);
      z-index: 1;
  }
  
  .input-with-icon input {
      padding-left: 2.75rem;
  }
  
  input:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
      transform: translateY(-2px);
  }
  
  .input-error {
      border-color: var(--error-color) !important;
      box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
  }
  
  .input-success {
      border-color: var(--success-color) !important;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
  }
  
  .btn {
      width: 100%;
      padding: 0.875rem 1rem;
      border-radius: var(--radius-md);
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      border: none;
      font-family: 'Inter', sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      position: relative;
      overflow: hidden;
  }
  
  .btn-primary {
      background: var(--primary-color);
      color: white;
      box-shadow: var(--shadow-md);
  }
  
  .btn-primary:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
  }
  
  .btn-primary:active {
      transform: translateY(0);
  }
  
  .btn-secondary {
      background: var(--background-light);
      color: var(--text-dark);
      border: 1px solid var(--border-medium);
  }
  
  .btn-secondary:hover {
      background: #f3f4f6;
      transform: translateY(-2px);
  }
  
  .btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none !important;
  }
  
  .btn-loading::after {
      content: '';
      width: 16px;
      height: 16px;
      border: 2px solid transparent;
      border-top: 2px solid currentColor;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
  }
  
  /* === WEB DETAILS SECTION === */
  #webDetails {
    display: none; 
    width: 100%;
    margin: 1%;
    padding: 20px;
    font-family: "Poppins", Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #333;
    opacity: 0;
    animation: smoothFadeIn 0.6s ease-out forwards;
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
  #title {
      background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
      padding: 2.5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
  }
  
  #title::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transform: rotate(45deg);
      animation: shimmer 3s infinite;
  }
  
  #title h1 {
      font-size: 2.25rem;
      font-weight: 800;
      margin: 0;
      color: white;
      letter-spacing: 0.5px;
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
  }
  
  #details {
      background: linear-gradient(135deg, rgba(219, 234, 254, 0.6), rgba(255, 255, 255, 0.8));
      padding: 2rem;
      transition: all 0.3s ease;
  }
  
  #details p {
      color: var(--text-dark); 
      font-size: 1.1rem;
      line-height: 1.8;
      text-align: justify;
      max-width: 1200px;
      margin: 0 auto;
  }
  
  /* === MAP CONTAINER === */
  #mapContainer {
      display: none;
      flex-direction: row;
      width: 100%;
      height: 100vh;       
      position: relative;
      animation: fadeIn 1s ease-out;
  }
  
  #mapDiv {
      flex: 1;
      width: 100%;
      height: 100vh;  
      transition: all 0.3s ease-in-out;   
  }
  
  #mapDiv.map-with-feature-editor {
      width: 60%;
      margin-left: 20%;
  }
  
    /* === POPUP STYLES === */
    #popupDiv {
        position: absolute;
        top: 0;
        right: 280px;
        width: 260px;
        height: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 15px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
        border-left: 1px solid var(--border-light);
        z-index: 99;
        transform: translateX(calc(100% + 280px));
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #popupDiv.show {
        transform: translateX(0);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }


    #popupDiv.controls-closed {
        right: 0;
        transform: translateX(calc(100% + 280px));
    }

    #popupDiv.controls-closed.show {
        transform: translateX(0);
    }
  
    .popup-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .popup-header h3 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0;
    }
  
    #popupDiv h3 {
        text-align: center;
        font-size: 1.2rem;
        color: var(--primary-color);
        margin-bottom: 10px;
    }
    
    #popupContent ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #popupContent {
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        padding-right: 5px;
    }

    #popupContent li {
        padding: 8px;
        border-bottom: 1px solid #ddd;
        font-size: 0.9rem;
        color: #333333;
        line-height: 1.2;
    }

    #popupContent li:last-child {
        border-bottom: none;
    }

    .feature-label {
        font-weight: 600;
        color: var(--text-dark);
    }

    .feature-value {
        color: var(--text-light);
        margin-left: 0.5rem;
    }
  
    #closeButtonBottom {
        width: 100%;
        padding: 12px 14px;
        margin: 10px 0;
        border: 1px solid #ddd;
        border-radius: 8px;
        background-color: var(--primary-color);
        color: white;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.95rem;
        transition: background-color 0.3s, transform 0.3s ease-in-out;
    }

    #closeButtonBottom:hover {
        background-color: var(--primary-dark);
        transform: scale(1.05);
    }

    #closeButtonBottom:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
    }

/* === UPDATE FEATURE PANEL === */

#updateFeaturePanel {
    position: absolute;
    top: 0;
    right: 540px; 
    width: 260px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    border-left: 1px solid var(--border-light);
    z-index: 98;
    transform: translateX(calc(100% + 540px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#updateFeaturePanel.show {
    transform: translateX(0);
}

#updateFeaturePanel.controls-closed {
    right: 260px;
    transform: translateX(calc(100% + 260px));
}

#updateFeaturePanel.controls-closed.show {
    transform: translateX(0);
}

.update-feature-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.update-feature-header i:first-child {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.update-feature-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

#updatePanelCloseTop {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-left: auto;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
}

#updatePanelCloseTop:hover {
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.08);
}

.update-placeholder-text {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 1rem;
    line-height: 1.6;
}

.update-placeholder-text i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-light);
}

#updatePanelCloseBottom {
    width: 100%;
    padding: 12px 14px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s, transform 0.3s ease-in-out;
}

#updatePanelCloseBottom:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

#updatePanelCloseBottom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
}

    /* === UPDATE FEATURE TOGGLE BUTTON === */

    #updateFeatureToggleBtn {
        position: absolute;
        right: 800px; 
        left: auto;
        top: calc(50% + 60px); 
        transform: translateY(0);
        z-index: 101;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 1px solid rgba(147, 197, 253, 0.6);
        border-radius: 8px 0 0 8px;
        padding: 12px 8px;
        cursor: pointer;
        display: none; 
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        box-shadow: none;
        transition: background 0.2s, right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        writing-mode: vertical-rl;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        min-width: 28px;
        min-height: 80px;
    }

    #updateFeatureToggleBtn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    #updateFeatureToggleBtn.panel-open {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(147, 197, 253, 0.6);
    }

    #updateFeatureToggleBtn.panel-closed {
        background: var(--primary-color);
        color: white;
        border: none;
        box-shadow: -3px 0 12px rgba(0,0,0,0.2);
    }

    #updateFeatureToggleBtn.panel-closed:hover {
        background: var(--primary-dark);
    }

    #updateFeatureToggleBtn .toggle-icon {
        writing-mode: horizontal-tb;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    #controlsToggleBtn.update-visible {
        right: 800px;
    }

    #controlsToggleBtn.panel-closed.update-visible {
        right: 520px;
    }

    #updateFeatureToggleBtn.controls-open.update-open     { right: 800px; }
    #updateFeatureToggleBtn.controls-open.update-closed   { right: 540px; }
    #updateFeatureToggleBtn.controls-closed.update-open   { right: 520px; }
    #updateFeatureToggleBtn.controls-closed.update-closed { right: 260px; }

  
    /* === CONTROLS PANEL (Slide Overlay) === */

    #controls {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        width: 280px;
        max-width: 90vw;
        height: 100%;
        padding: 1rem;
        background: var(--background-white);
        backdrop-filter: blur(15px);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        border-left: 1px solid var(--border-light);
        z-index: 100;
        transform: translateX(0);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #controls.panel-hidden {
        transform: translateX(100%);
    }

    /* Toggle tab button on the right edge of the panel */
        #controlsToggleBtn {
            position: absolute;
            top: 50%;
            right: 280px;
            left: auto;
            transform: translateY(-50%);
            z-index: 101;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(147, 197, 253, 0.6);
            border-radius: 8px 0 0 8px;
            padding: 12px 8px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            box-shadow: none;
            transition: background 0.2s, right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            writing-mode: vertical-rl;
            font-size: 0.78rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            min-width: 28px;
            min-height: 80px;
        }

        #controlsToggleBtn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* When panel is CLOSED — button goes back to solid color */
        
        #controlsToggleBtn.panel-closed {
            right: 0;
            left: auto;
            background: var(--primary-color);
            color: white;
            border: none;
            box-shadow: -3px 0 12px rgba(0,0,0,0.2);
        }

        #controlsToggleBtn.panel-closed:hover {
            background: var(--primary-dark);
        }

        /* When Feature Details is visible — button shifts left of feature details panel */
        #controlsToggleBtn.popup-visible {
            right: 540px;
        }

        /* When Feature Details visible AND Controls closed — button sits left of feature details only */
        #controlsToggleBtn.panel-closed.popup-visible {
            right: 260px;
        }

    #controlsToggleBtn .toggle-icon {
        writing-mode: horizontal-tb;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    #detailsToggleBtn {
        position: absolute;
        top: calc(50% - 90px);   
        right: auto;
        left: auto;
        transform: translateY(-50%);
        z-index: 101;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 1px solid rgba(147, 197, 253, 0.6);
        border-radius: 8px 0 0 8px;
        padding: 12px 8px;
        cursor: pointer;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        box-shadow: none;
        transition: background 0.2s, right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        writing-mode: vertical-rl;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        min-width: 28px;
        min-height: 80px;
    }

    #detailsToggleBtn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    #detailsToggleBtn.panel-open {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(147, 197, 253, 0.6);
        box-shadow: none;
        color: white;
    }

    #detailsToggleBtn.panel-open:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    #detailsToggleBtn .toggle-icon {
        writing-mode: horizontal-tb;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    
    #controlsToggleBtn.panel-closed {
        right: 0;
        left: auto;
    }
 

    #controlsPanelClose {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-light);
        font-size: 1.1rem;
        margin-left: auto;
        padding: 4px 6px;
        border-radius: var(--radius-sm);
        transition: color 0.2s, background 0.2s;
        display: flex;
        align-items: center;
    }

    #controlsPanelClose:hover {
        color: var(--error-color);
        background: rgba(239, 68, 68, 0.08);
    }
  
    /* Close button for dark gradient headers (Search + Editor) */
        .dark-header-close {
            background: none;
            border: none;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.1rem;
            margin-left: auto;
            padding: 4px 6px;
            border-radius: var(--radius-sm);
            transition: color 0.2s, background 0.2s;
            display: flex;
            align-items: center;
        }

        .dark-header-close:hover {
            color: white;
            background: rgba(239, 68, 68, 0.4);
        }

        #closeButton {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-light);
            font-size: 1.1rem;
            margin-left: auto;
            padding: 4px 6px;
            border-radius: var(--radius-sm);
            transition: color 0.2s, background 0.2s;
            display: flex;
            align-items: center;
        }

        #closeButton:hover {
            color: var(--error-color);
            background: rgba(239, 68, 68, 0.08);
        }
  
  .controls-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border-light);
  }
  
  .controls-header h3 {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-dark);
      margin: 0;
  }
  
  .checkbox-container {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
  }
  
  .control-group {
      margin-bottom: 1rem;
  }
  
  .control-group-title {
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 0.75rem;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
  }
  
  label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0.5rem 0.5rem 0.5rem 1.25rem; 
    position: relative;
    overflow: hidden;
    font-weight: 500;
}
  
  label::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, rgba(37, 99, 235, 0.05), rgba(219, 234, 254, 0.2));
      transition: width 0.3s ease;
      z-index: -1;
  }
  
  label:hover::before {
      width: 100%;
  }
  
  label:hover {
      transform: translateX(5px);
      color: var(--primary-color);
  }
  
  /* Main category labels */
  .category-label {
      width: 100%;
      font-size: 1rem;
      color: white;
      background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
      font-weight: 600;
      padding: 0.875rem 1rem;
      border-radius: var(--radius-md);
      display: inline-block;
      box-sizing: border-box;
      box-shadow: var(--shadow-md);
      margin-bottom: 0.5rem;
  }
  
  .category-label::before {
      display: none;
  }
  
  .category-label:hover {
      transform: translateX(0);
      color: white;
      background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  }
  
  .nested {
      margin-left: 1.5rem;
      display: none;
      padding-left: 1rem;
      border-left: 2px solid rgba(37, 99, 235, 0.2);
      animation: slideDown 0.4s ease;
      overflow: hidden;
  }
  
  .nested.show {
      display: block;
  }
  
  .nested label {
      font-size: 0.9rem;
      animation: slideInFromLeft 0.3s ease both;
      padding: 0.5rem 0.75rem;
  }
  
  .nested label:nth-child(1) { animation-delay: 0.05s; }
  .nested label:nth-child(2) { animation-delay: 0.1s; }
  .nested label:nth-child(3) { animation-delay: 0.15s; }
  
  input[type="checkbox"] {
      width: 18px;
      height: 18px;
      cursor: pointer;
      accent-color: var(--primary-color);
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
  }
  
  input[type="checkbox"]:checked {
      animation: pulse 0.3s ease;
  }
  
  input[type="checkbox"]:hover {
      transform: scale(1.1);
  }
  
    /* === SEARCH SIDEBAR === */

        #btnsearch {
        position: absolute;
        top: 150px;
        left: 0;
        z-index: 201;
        background: linear-gradient(135deg, #16a085, #138d75);
        color: white;
        border: none;
        padding: 0.75rem 1rem;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.9rem;
        box-shadow: var(--shadow-lg);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform: translateX(0);
        animation: pulse 2s ease infinite;
        white-space: nowrap;
        width: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }  

    #btnsearch:hover {
        background: linear-gradient(135deg, #138d75, #16a085);
        transform: translateX(5px) scale(1.05);
        box-shadow: var(--shadow-xl);
        animation: none;
    }

    #btnsearch.sidebar-open {
        left: max(20%, 300px);
        transform: translateX(0);
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        background: rgba(255, 255, 255, 0.2);
        color: white;
        box-shadow: none;
        animation: none;
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

    #btnsearch.sidebar-open:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateX(0);
        box-shadow: none;
    }

    #btnsearch.hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100px);
    }

    #toggleFeatureEditor.hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100px);
    }

    /* Search Sidebar Styles */
    #searchSidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 20%;
        min-width: 300px;
        max-width: 400px;
        height: 100vh;
        background: var(--background-white);
        backdrop-filter: blur(15px);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 200;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform: translateX(-100%);
        border-right: 4px solid #16a085;
        overflow: hidden;        
        display: flex;          
        flex-direction: column;  
    }

    #searchSidebar.expanded {
        transform: translateX(0);
    }

    .search-header {
        padding: 1.5rem;
        background: linear-gradient(135deg, #16a085, #138d75);
        color: white;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-shrink: 0;
        justify-content: flex-start;
    }

    .search-header h3 {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 700;
    }

    .search-header i {
        font-size: 1.5rem;
    }

    #searchSidebar .input-group {
        margin-bottom: 0.5rem;
    }

    #searchSidebar label {
        margin-bottom: 0.2rem;   
        font-size: 0.72rem;     
        line-height: 1;          
        padding: 0;              
    }

    #searchSidebar input[type="text"],
    #searchSidebar select {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid var(--border-light);
        border-radius: var(--radius-md);
        font-size: 0.95rem;
        transition: all 0.3s ease;
        background: white;
    }

    #searchSidebar input[type="text"]:focus,
    #searchSidebar select:focus {
        outline: none;
        border-color: #16a085;
        box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
    }

    .search-results-section {
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    }

    .search-filters-section {
    flex-shrink: 0 !important;
    }


    .search-buttons {
        display: flex;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .btn-search,
    .btn-clear {
        flex: 1;
        padding: 0.75rem;
        border: none;
        border-radius: var(--radius-md);
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }

    .btn-search {
        background: linear-gradient(135deg, #16a085, #138d75);
        color: white;
    }

    .btn-search:hover {
        background: linear-gradient(135deg, #138d75, #0e6d5e);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .btn-clear {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: white;
    }

    .btn-clear:hover {
        background: linear-gradient(135deg, #c0392b, #a93226);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }


    #searchResults {
        max-height: unset;
        overflow-y: auto;
    }

    .no-results {
        text-align: center;
        color: var(--text-secondary);
        padding: 2rem;
        font-style: italic;
    }

    .search-result-item {
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .search-result-item:hover {
        background: var(--background-light);
        transform: translateX(5px);
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

    .result-name {
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.25rem;
    }
 
    .result-details {
        font-size: 0.85rem;
        color: var(--text-secondary);
    }

    /* === FEATURE EDITOR SIDEBAR === */
    #featureEditorSidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 20%;
        min-width: 300px;
        max-width: 400px;
        height: 100vh;
        background: var(--background-white);
        backdrop-filter: blur(15px);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 200;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform: translateX(-100%);
        border-right: 4px solid var(--primary-color);
    }
    
    #featureEditorSidebar.expanded {
        transform: translateX(0);
    }
    
    .feature-editor-header {
        padding: 1.5rem;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        justify-content: flex-start;
    }
        
    .feature-editor-header h3 {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 700;
    }
    
    #toggleFeatureEditor {
        position: absolute;
        top: 100px;
        left: 0;
        z-index: 201;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        border: none;
        padding: 0.75rem 1rem;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.9rem;
        box-shadow: var(--shadow-lg);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform: translateX(0);
        animation: pulse 2s ease infinite;
        white-space: nowrap;
        width: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    #toggleFeatureEditor:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
        transform: translateX(5px) scale(1.05);
        box-shadow: var(--shadow-xl);
        animation: none;
    }
    
    #toggleFeatureEditor.sidebar-open {
        left: max(20%, 300px);
        transform: translateX(0);
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        background: rgba(255, 255, 255, 0.2);
        color: white;
        box-shadow: none;
        animation: none;
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

    #toggleFeatureEditor.sidebar-open:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateX(0);
        box-shadow: none;
    }
  
  .section {
      margin-bottom: 1.5rem;
      padding: 0.6rem 1rem;
      background: var(--background-white);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      border-left: 5px solid var(--primary-color);
      transition: all 0.3s ease;
      animation: fadeIn 0.5s ease both;
  }
  
  .section:nth-child(1) { animation-delay: 0.1s; }
  .section:nth-child(2) { animation-delay: 0.2s; }
  .section:nth-child(3) { animation-delay: 0.3s; }
  
  .section:hover {
      transform: translateX(5px);
      box-shadow: var(--shadow-md);
  }
  
    .section-title {
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--primary-color);
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .result-count-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--success-color);
        color: white;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 999px;
        letter-spacing: 0;
        text-transform: none;
        margin-left: 2px;
        min-width: 24px;
        transition: background 0.3s ease;
    }

    .result-count-badge.zero {
        background: var(--text-lighter);
    }
  
  .layer-buttons {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
  }
  
  .layer-buttons button {
      display: block;
      width: 100%;
      margin-bottom: 0;
      padding: 0.875rem;
      border: none;
      background: var(--background-light);
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      font-weight: 600;
      border: 1px solid var(--border-light);
      color: var(--text-dark);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      gap: 0.5rem;
  }
  
  .layer-buttons button::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(37, 99, 235, 0.1);
      transform: translate(-50%, -50%);
      transition: width 0.5s, height 0.5s;
  }
  
  .layer-buttons button:active::after {
      width: 300px;
      height: 300px;
  }
  
  .layer-buttons button:hover {
      background: #f3f4f6;
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
  }
  
  .layer-buttons button.active {
      background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
      color: white;
      border-color: var(--primary-dark);
      transform: scale(1.02);
      box-shadow: var(--shadow-lg);
      animation: glow 2s ease infinite;
  }
  
  .input-group {
      margin-bottom: 0.25rem;
  }
  
  .input-group label {
      display: block;
      margin-bottom: 0.25rem;
      font-weight: 600;
      color: var(--text-dark);
      font-size: 0.75rem;
      padding: 0;
      cursor: default;
      line-height: 1;
  }
  
  .input-group label::before {
      display: none;
  }
  
  .input-group label:hover {
      transform: none;
      color: var(--text-dark);
  }
  
  .required {
      color: var(--error-color);
  }
  
  #featureEditorSidebar input[type="text"] {
      width: 100%;
      padding: 0.75rem 1rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-medium);
      box-sizing: border-box;
      font-size: 0.95rem;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      background: var(--background-white);
      font-family: 'Inter', sans-serif;
  }
  
  #featureEditorSidebar input[type="text"]:focus {
      border-color: var(--primary-color);
      outline: none;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
      transform: translateY(-2px);
  }
  
  #submitFeatureBtn {
      background: linear-gradient(135deg, var(--success-color), var(--secondary-dark)) !important;
      color: white !important;
      border: none;
      padding: 0.875rem;
      border-radius: var(--radius-md);
      width: 100%;
      margin-top: 1rem;
      cursor: pointer;
      font-weight: 700;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      font-size: 1rem;
      box-shadow: var(--shadow-md);
      position: relative;
      overflow: hidden;
  }
  
  #submitFeatureBtn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
  }
  
  #submitFeatureBtn:active::before {
      width: 300px;
      height: 300px;
  }
  
  #submitFeatureBtn:disabled {
      background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
      cursor: not-allowed;
      transform: none !important;
      box-shadow: none !important;
      opacity: 0.6;
  }
  
  #submitFeatureBtn:hover:not(:disabled) {
      background: linear-gradient(135deg, var(--secondary-dark), var(--success-color)) !important;
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
  }
  
  #clearFeatureBtn {
      background: linear-gradient(135deg, #ef4444, #dc2626) !important;
      color: white !important;
      border: none;
      padding: 0.75rem;
      border-radius: var(--radius-md);
      width: 100%;
      margin-top: 0.75rem;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      box-shadow: var(--shadow-md);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
  }
  
  #clearFeatureBtn:hover {
      background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
  }
  
  #featureMessage {
      margin-top: 1.5rem;
      font-size: 0.9rem;
      padding: 1rem;
      border-radius: var(--radius-md);
      background: var(--background-light);
      min-height: 20px;
      border-left: 5px solid #6b7280;
      transition: all 0.4s ease;
      animation: fadeIn 0.5s ease;
  }
  
  #featureMessage.success {
      background: linear-gradient(135deg, #dcfce7, #bbf7d0);
      color: #166534;
      border-left-color: var(--success-color);
      animation: bounceIn 0.6s ease;
  }
  
  #featureMessage.error {
      background: linear-gradient(135deg, #fee2e2, #fecaca);
      color: #991b1b;
      border-left-color: var(--error-color);
      animation: shake 0.5s ease;
  }
  
  #featureMessage.info {
      background: linear-gradient(135deg, #dbeafe, #bfdbfe);
      color: #1e40af;
      border-left-color: var(--info-color);
  }
  
  .loader {
      display: none;
      width: 30px;
      height: 30px;
      border: 4px solid rgba(37, 99, 235, 0.1);
      border-top: 4px solid var(--primary-color);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 1rem auto;
  }
  
  .geometry-info {
      font-size: 0.85rem;
      color: var(--text-light);
      margin-top: 1rem;
      padding: 0.75rem;
      background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.8));
      border-radius: var(--radius-md);
      border-left: 4px solid var(--primary-color);
      animation: fadeIn 0.4s ease;
  }
  
  /* === TOAST NOTIFICATIONS === */
  .toast-container {
      position: fixed;
      top: 1rem;
      right: 16px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      max-width: 400px;
  }
  
  .toast {
      padding: 1rem 1.25rem;
      border-radius: var(--radius-md);
      color: white;
      box-shadow: var(--shadow-lg);
      animation: slideInFromRight 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 500;
  }
  
  .toast.success {
      background: var(--success-color);
  }
  
  .toast.error {
      background: var(--error-color);
  }
  
  .toast.info {
      background: var(--info-color);
  }
  
  .toast.warning {
      background: var(--warning-color);
  }
  
  .toast i {
      font-size: 1.1rem;
  }
  
  /* === SCROLLBAR STYLING === */
  ::-webkit-scrollbar {
      width: 8px;
  }
  
  ::-webkit-scrollbar-track {
      background: rgba(241, 245, 249, 0.5);
  }
  
  ::-webkit-scrollbar-thumb {
      background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
      border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  }
  
  
  @media (max-width: 1024px) {
    #popupDiv,
    #featureEditorSidebar {
        width: 30%;
        min-width: 280px;
    }
      
      #mapDiv.map-with-popup {
          width: 70%;
      }
      
      #mapDiv.map-with-feature-editor {
          width: 70%;
          margin-left: 30%;
      }
      
      #mapDiv.map-with-feature-editor-and-popup {
          width: 40%;
          margin-left: 30%;
      }
      
      #toggleFeatureEditor.sidebar-open {
          left: 30%;
      }
  }
  
  @media (max-width: 768px) {
      body {
          padding: 1%;
      }
  
      #mainHeader {
          padding: 1rem;
      }
      
      .logo-text {
          font-size: 1.1rem;
      }
      
      .user-info span {
          display: none;
      }
  
      #mapContainer {
          flex-direction: column;
      }
  
      #mapDiv {
          width: 100%;
          height: 60vh;
      }
      
      #mapDiv.map-with-popup,
      #mapDiv.map-with-feature-editor,
      #mapDiv.map-with-feature-editor-and-popup {
          width: 100%;
          margin-left: 0;
          height: 40vh;
      }
  
        #popupDiv {
            width: 90vw;
            right: 0;
            height: 50%;
            top: auto;
            bottom: 0;
            transform: translateY(100%);
            box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        }

        #popupDiv.show {
            transform: translateY(0);
        }

        
        #controls {
            width: 85vw;
            max-width: 320px;
            position: absolute;
            height: 100%;
        }

        #controlsToggleBtn {
            left: 85vw;
        }

        #controlsToggleBtn.panel-closed {
            left: 0;
        }
  
      #webDetails {
          padding: 0.5rem;
      }
      
      #title {
          padding: 1.5rem;
      }
      
      #title h1 {
          font-size: 1.75rem;
      }
      
      #details {
          padding: 1.5rem;
      }
  
      #featureEditorSidebar {
          width: 90%;
          min-width: unset;
          max-width: unset;
          height: 80vh;
          top: 10vh;
      }
  
      #toggleFeatureEditor.sidebar-open {
          left: 90%;
          top: 10vh;
      }
      
      .mobile-tabs {
          display: flex;
          background: white;
          border-top: 1px solid var(--border-light);
          position: fixed;
          bottom: 0;
          left: 0;
          right: 0;
          z-index: 100;
      }
      
      .mobile-tab {
          flex: 1;
          padding: 1rem;
          text-align: center;
          border: none;
          background: none;
          font-size: 0.8rem;
          color: var(--text-light);
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 0.25rem;
      }
      
      .mobile-tab.active {
          color: var(--primary-color);
          font-weight: 600;
      }
      
      .mobile-tab i {
          font-size: 1.25rem;
      }
  }
  
  @media (max-width: 480px) {
      #authContainer {
          padding: 1.5rem 1.25rem;
          margin: 1rem;
      }
      
      .auth-header h2 {
          font-size: 1.5rem;
      }
      
      #title h1 {
          font-size: 1.5rem;
      }
      
      #details p {
          font-size: 1rem;
      }
      
      .section {
          padding: 1rem;
      }
  }