:root {
      /* Light Theme */
      --bg: #f8fafc;
      --panel: #ffffff;
      --text: #1e293b;
      --muted: #64748b;
      --brand: #10b981;
      --brand-2: #059669;
      --chip: #f1f5f9;
      --ring: #a7f3d0;
      --danger: #ef4444;
      --card: #ffffff;
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --radius: 12px;
      --image-opacity: 1;
      --stroke-color: #000000;
    }

    [data-theme="dark"] {
      /* Dark Theme - Enhanced with deeper blacks */
      --bg: #000000;
      --panel: #0a0a0a;
      --text: #f8fafc;
      --muted: #94a3b8;
      --brand: #22c55e;
      --brand-2: #16a34a;
      --chip: #111827;
      --ring: #34d39944;
      --card: #0f172a;
      --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
      --image-opacity: 0.9;
      --stroke-color: #ffffff;
    }

    /* 🌌 Enhanced Aurora Background */
    body::before {
      content: "";
      position: fixed;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background:
        radial-gradient(circle at 20% 30%, rgba(255,0,150,0.4), transparent 70%),
        radial-gradient(circle at 80% 70%, rgba(0,200,255,0.35), transparent 70%),
        radial-gradient(circle at 60% 20%, rgba(0,255,128,0.3), transparent 70%),
        radial-gradient(circle at 40% 80%, rgba(255,200,0,0.3), transparent 70%),
        radial-gradient(circle at 70% 40%, rgba(160,32,240,0.35), transparent 70%);
      animation: aurora 20s ease-in-out infinite alternate,
                 aurora-hue 40s linear infinite;
      z-index: -1;
      filter: blur(120px);
      opacity: 0.55;
    }

    @keyframes aurora {
      0%   { transform: translate(-10%, -10%) scale(1) rotate(0deg); }
      25%  { transform: translate(10%, -20%) scale(1.1) rotate(45deg); }
      50%  { transform: translate(20%, 10%) scale(1.05) rotate(90deg); }
      75%  { transform: translate(-20%, 20%) scale(1.15) rotate(135deg); }
      100% { transform: translate(-10%, -10%) scale(1) rotate(180deg); }
    }

    /* 🌈 Slowly cycle aurora colors */
    @keyframes aurora-hue {
      from { filter: blur(120px) hue-rotate(0deg); }
      to   { filter: blur(120px) hue-rotate(360deg); }
    }

    .curtain {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 9999;
      pointer-events: none;
      transform: translateX(-100%);
      opacity: 0;
      transition: opacity 0.6s ease-in-out;
      backface-visibility: hidden;
      perspective: 1000px;
      transform-style: preserve-3d;
    }

    .curtain.animate {
      animation: curtainSlide 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      opacity: 1;
      transform: translateX(-100%);
    }

    /* Light curtain (shown when switching to dark theme) */
    .curtain.light {
      background: linear-gradient(to right, #f8fafc, #e2e8f0, #f8fafc);
    }

    /* Dark curtain (shown when switching to light theme) - Deep black */
    .curtain.dark {
      background: linear-gradient(to right, #000000, #0a0a0a, #000000);
    }
    @keyframes curtainSlide {
      0% { 
        transform: translateX(-100%);
        opacity: 1;
      }
      50% { 
        transform: translateX(0);
        opacity: 1;
      }
      100% { 
        transform: translateX(100%);
        opacity: 0;
      }
    }
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.7;
      background-color: var(--bg);
      color: var(--text);
      padding: 20px;
      transition: background-color 0.6s ease-in-out, color 0.6s ease-in-out;
      overflow-x: hidden;
    }

    /* ===== Container & Layout ===== */
    .container {
      max-width: 1290px;
      margin: 0 auto;
      background: var(--panel);
      padding: 40px;
      border-radius: 20px;
      box-shadow: var(--shadow);
      transition: all 0.3s;
      position: relative;
      z-index: 1;
    }

    .header-sticky {
      position: sticky;
      top: 0;
      z-index: 10;
      background: var(--panel);
      padding: 15px 0;
      margin: -15px 0 15px;
      transition: all 0.3s ease;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 5px;
      transition: all 0.3s ease;
      transform-origin: left center;
    }

    .brand.scrolled {
      transform: scale(0.9);
    }

    .logo {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 45px;
      height: 45px;
      background-color: transparent;
      color: green;
      border-radius: 50%;
      font-size: 32px;
      transition: all 0.3s ease;
      -webkit-text-stroke: 0.5px green;
    }

    .brand.scrolled .logo {
      width: 38px;
      height: 38px;
      font-size: 28px;
    }

    .brand-text {
      transition: all 0.3s ease;
      transform-origin: left center;
    }

    .brand.scrolled .brand-text {
      transform: scale(0.9);
    }

    .brand-title {
      color: transparent;
      font-size: 40px;
      font-weight: 700;
      margin-bottom: 5px;
      transition: all 0.3s ease;
      -webkit-text-stroke: 2px green;
      display: flex;
      align-items: center;
      gap: 10px;
      transform-origin: left center;
    }

    .brand.scrolled .brand-title {
      font-size: 45px;
      transform: scale(0.9);
    }

    .brand-title .logo {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background-color: transparent;
      color: green;
      border-radius: 50%;
      font-size: 35px;
      transition: all 0.3s ease;
      -webkit-text-stroke: 0.5px green;
    }

    .brand.scrolled .brand-title .logo {
      width: 36px;
      height: 36px;
      font-size: 38px;
    }

    .tagline {
      color: rgba(104, 104, 104, 0.836);
      font-size: 19px;
      transition: all 0.3s ease;
      transform-origin: left center;
    }

    .brand.scrolled .tagline {
      font-size: 21px;
      transform: scale(0.9);
    }

    .header-controls {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    /* Profile Dropdown - Fixed hover issues */
    .profile-dropdown {
      position: relative;
    }

    .profile-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      background: none;
      border: none;
      color: var(--text);
      font-size: 25px;
      cursor: pointer;
      padding: 8px 12px;
      border-radius: 25px;
      transition: all 0.3s;
    }

    /* CHANGED: Normal hover effect for profile button */
    .profile-btn:hover {
      background-color: var(--chip);
      transform: scale(1.05);
    }

    .dropdown-menu {
      position: absolute;
      top: 100%;
      right: 0;
      background: var(--card);
      border-radius: 15px;
      box-shadow: var(--shadow);
      padding: 10px 15px;
      min-width: 150px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s;
      z-index: 1000;
    }

    .profile-dropdown.active .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 12px;
      color: var(--text);
      text-decoration: none;
      transition: all 0.3s;
      border-radius: 20px;
    }

    /* CHANGED: Normal hover effect for dropdown items */
    .dropdown-item:hover {
      background-color: var(--chip);
      transform: translateX(5px);
    }

    /* Only logout item turns red on hover */
    .dropdown-item.logout-item:hover {
      color: var(--danger);
      background-color: rgba(239, 68, 68, 0.1);
    }

    .dropdown-item.logout-item:hover i {
      color: var(--danger);
    }

    /* ===== Search Section ===== */
    .search-section {
      margin-bottom: 25px;
    }

    .search-controls {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 20px;
    }

    .search-bar {
      position: relative;
      display: flex;
      align-items: center;
      flex: 1;
    }

    .search-icon {
      position: absolute;
      left: 15px;
      color: var(--muted);
      z-index: 2;
    }

    #searchInput {
      width: 100%;
      padding: 15px 60px 15px 45px;
      border: 2px solid var(--chip);
      border-radius: 30px;
      font-size: 16px;
      background-color: var(--card);
      color: var(--text);
      transition: all 0.3s;
    }

    #searchInput:focus {
      border-color: green;
      outline: none;
      box-shadow: 0 0 0 3px var(--ring);
    }

    .clear-search, .voice-search {
      position: absolute;
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.3s;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
    }

    .clear-search {
      right: 50px;
      opacity: 0;
      visibility: hidden;
    }

    .clear-search.visible {
      opacity: 1;
      visibility: visible;
    }

    .clear-search:hover {
      color: var(--danger);
      background-color: rgba(239, 68, 68, 0.1);
    }

    .voice-search {
      right: 10px;
      background-color: var(--chip);
      color: var(--muted);
      border: 1px solid var(--chip);
    }

    .voice-search:hover {
      background-color: green;
      color: white;
      transform: scale(1.05);
    }

    .theme-toggle {
      background: none;
      border: none;
      color: var(--text);
      font-size: 19px;
      cursor: pointer;
      padding: 12px;
      border-radius: 50%;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .theme-toggle:hover {
      background-color: var(--chip);
    }

    .filter-options {
      display: flex;
      justify-content: flex-start; 
      gap: 15px;
      align-items: center;
      flex-wrap: wrap;
    }

    /* Separated System Filter and Reset Button Styles */
    .system-filter-wrapper,
    .reset-filter-wrapper {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .favorites-btn {
      padding: 15px 20px;
      background: var(--chip);
      border: none;
      border-radius: 32px;
      font-weight: 500;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
      position: relative;
      overflow: hidden;
    }

    .favorites-btn:hover {
      color: green;
      background-color: var(--chip);
    }

    .favorites-btn::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 2px;
      background-color: green;
      transition: all 0.3s ease;
      transform: translateX(-50%);
    }

    .favorites-btn:hover::after {
      width: 70%;
    }

    .filter-tabs {
      display: flex;
      background-color: var(--chip);
      padding: 4px;
      border-radius: 25px;
    }

    .filter-tab {
      padding: 10px 20px;
      background: none;
      border: none;
      border-radius: 32px;
      font-weight: 500;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
      position: relative;
      overflow: hidden;
    }

    .filter-tab::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 2px;
      background-color: green;
      transition: all 0.3s ease;
      transform: translateX(-50%);
    }

    .filter-tab:hover::after {
      width: 70%;
    }

    .filter-tab.active {
      background-color: green;
      color: white;
    }

    .filter-tab.active::after {
      width: 0;
    }

    #systemFilter {
      padding: 14px 18px;
      font-size: 15px;
      background-color: var(--card);
      color: var(--muted);
      border: 1px solid var(--chip);
      border-radius: 25px;
      cursor: pointer;
      min-width: 180px;
    }

    #resetBtn {
      padding: 14px 18px;
      font-size: 15px;
      background-color: var(--card);
      color: var(--muted);
      border: 1px solid var(--chip);
      border-radius: 25px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    #resetBtn:hover {
      background-color: var(--chip);
    }

    /* Custom dropdown styling for body types */
    .custom-select-wrapper {
      position: relative;
      display: inline-block;
      transition: all 0.3s;
      z-index: 100;
    }

    .custom-select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      padding: 14px 18px;
      background-color: var(--card);
      color: var(--muted);
      border: 1px solid var(--chip);
      border-radius: 25px;
      cursor: pointer;
      font-size: 15px;
      min-width: 180px;
      transition: all 0.3s;
    }

    .custom-select:focus {
      outline: none;
      border-color: var(--brand);
      box-shadow: 0 0 0 3px var(--ring);
    }

    .custom-arrow {
      position: absolute;
      top: 50%;
      right: 15px;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 5px solid var(--muted);
      pointer-events: none;
      transition: transform 0.3s;
    }

    .custom-select-wrapper:hover .custom-arrow {
      border-top-color: green;
    }

    .custom-select:focus + .custom-arrow {
      transform: translateY(-50%) rotate(180deg);
    }

    /* ADDED: Dropdown options animation */
    .custom-select option {
      background-color: var(--card);
      color: var(--text);
      padding: 10px;
      animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Animation for dropdown */
    .custom-select-wrapper {
      transition: all 0.3s;
    }

    .custom-select-wrapper:focus-within {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* FIXED: Proper dropdown menu for body systems */
    .system-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--card);
      border-radius: 25px;
      box-shadow: var(--shadow);
      padding: 10px 0;
      margin-top: 5px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s;
      z-index: 1000;
    }

    .system-dropdown.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .system-option {
      display: block;
      width: 100%;
      padding: 12px 20px;
      background: none;
      border: none;
      text-align: left;
      color: var(--text);
      cursor: pointer;
      transition: all 0.3s;
      font-size: 14px;
      font-weight: 500;
      border-radius: 20px;
    }

    .system-option:hover {
      background-color: var(--chip);
      color: var(--brand);
      padding-left: 25px;
    }

    .system-option.selected {
      background-color: var(--brand);
      color: white;
      position: relative;
    }

    .system-option.selected::after {
      content: "✓";
      position: absolute;
      right: 15px;
      font-weight: bold;
    }

    /* ===== Plant Cards ===== */
    .results-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 20px;
    }

    .plant-card {
      background: var(--card);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: transform 0.3s, box-shadow 0.3s;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--chip);
    }

    .plant-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 15px green;
    }

    .card-image {
      height: 180px;
      background-size: cover;
      background-position: center;
      position: relative;
    }

    .card-body {
      padding: 20px;
      flex-grow: 1;
    }

    .card-body h3 {
      color: green;
      margin-bottom: 5px;
      font-size: 19px;
    }

    .latin-name {
      font-style: italic;
      color: var(--muted);
      font-size: 14px;
      margin-bottom: 15px;
    }

    .card-diseases {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 10px 0;
    }

    .disease-tag {
      background-color: transparent;
      color: var(--muted);
      padding: 5px 12px;
      border: 2.5px solid green;
      border-radius: 50px;
      font-size: 12px;
      font-weight: 500;
    }

    .card-footer {
      padding: 15px 20px;
      background-color: var(--chip);
      border-top: 1px const solid var(--chip);
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--muted);
    }

    .view-details {
      color: green;
      font-weight: 600;
      font-size: 14px;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 5px;
      transition: all 0.3s;
    }

    .view-details:hover {
      gap: 8px;
    }

    .placeholder {
      grid-column: 1 / -1;
      text-align: center;
      padding: 50px 20px;
      color: var(--muted);
    }

    .placeholder i {
      margin-bottom: 15px;
      color: var(--chip);
      font-size: 48px;
    }

    /* ===== Footer ===== */
    .app-footer {
      margin-top: 40px;
      padding-top: 20px;
      border-top: 1px solid var(--chip);
    }

    .disclaimer {
      text-align: center;
      font-size: 14px;
      color: var(--muted);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    /* ===== Modal Styles ===== */
    .modal {
      display: none;
      position: fixed;
      z-index: 100;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      overflow-y: auto;
      animation: appear linear;
      animation-timeline: view();
    }

    .modal-content {
      background-color: var(--panel);
      margin: 50px auto;
      max-width: 800px;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: var(--shadow);
      animation: modalFadeIn 0.3s;
      position: relative;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .close-modal {
      position: absolute;
      right: 20px;
      top: 20px;
      font-size: 24px;
      color: var(--muted);
      cursor: pointer;
      transition: color 0.2s;
      z-index: 101;
      background: rgba(0, 0, 0, 0.1);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .close-modal:hover {
      color: red;
      background: rgba(0, 0, 0, 0.2);
    }

    .modal-header {
      padding: 25px;
      background-color: green;
      color: white;
    }

    .modal-header h2 {
      font-size: 29px;
    }

    .latin-name {
      font-style: italic;
      opacity: 0.9;
      font-size: 17px;
    }

    .modal-body {
      display: flex;
      flex-direction: column;
      padding: 0;
    }

    .modal-image {
      height: 300px;
      background-color: var(--chip);
      background-size: cover;
      background-position: center;
    }

    .modal-details {
      padding: 25px;
    }

    .detail-group {
      margin-bottom: 20px;
    }

    .detail-group h3 {
      color: green;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .detail-group.warning {
      background-color: rgba(255, 193, 7, 0.1);
      padding: 15px;
      border-radius: 8px;
      border-left: 4px solid var(--danger);
    }

    .detail-group.warning h3 {
      color: var(--danger);
    }

    #modalDiseases {
      list-style-type: none;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    #modalDiseases li {
      background-color: transparent;
      color: var(--muted);
      border: 2.5px solid green;
      padding: 5px 12px;
      border-radius: 50px;
      font-size: 14px;
    }

    /* ===== Responsive Design ===== */
    @media (max-width: 1024px) {
      .results-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 900px) {
      .filter-options {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .system-filter-wrapper, .reset-filter-wrapper, .favorites-btn, .filter-tabs {
        width: 100%;
        justify-content: center;
      }
    }

    @media (max-width: 768px) {
      .container {
        padding: 20px;
      }

      .header-sticky {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
      }
      
      .header-controls {
        width: 100%;
        justify-content: space-between;
      }

      .search-controls {
        flex-direction: column;
        align-items: stretch;
      }
      
      .theme-toggle {
        align-self: flex-end;
      }

      .filter-options {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .filter-tabs {
        flex-wrap: wrap;
      }

      .modal-body {
        flex-direction: column;
      }

      .modal-image {
        height: 200px;
      }
      
      .brand {
        flex-direction: column;
        text-align: center;
      }
      
      .brand.scrolled {
        flex-direction: row;
        text-align: left;
      }
      
      .results-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 480px) {
      .logo {
        flex-direction: column;
        gap: 5px;
      }

      .system-filter-wrapper, .reset-filter-wrapper {
        flex-direction: column;
        width: 100%;
      }
      
      #systemFilter, #resetBtn {
        width: 100%;
      }
      
      .custom-select {
        min-width: 100%;
      }
      
      .profile-btn span {
        display: none;
      }
      
      .brand-title {
        font-size: 32px;
      }
      
      .brand.scrolled .brand-title {
        font-size: 28px;
      }
      
      .tagline {
        font-size: 16px;
      }
      
      .brand.scrolled .tagline {
        font-size: 14px;
      }
      
      .filter-options {
        gap: 10px;
      }
      
      .system-filter-wrapper {
        order: 1;
      }
      
      .reset-filter-wrapper {
        order: 2;
      }
      
      .favorites-btn {
        order: 3;
        width: 100%;
        justify-content: center;
      }
      
      .filter-tabs {
        order: 4;
        width: 100%;
      }
    }

    /* Favorites styling */
    .favorite-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: transparent;
      border: none;
      border-radius: 50%;
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s;
      color: var(--muted);
      font-size: 20px;
    }

    .favorite-btn:hover {
      background: transparent;
      color: red;
    }

    .favorite-btn.active {
      font-size: 50px;
      color: red;
    }

    /* Body systems dropdown */
    .body-systems-dropdown {
      position: relative;
    }

    .body-systems-toggle {
      padding: 14px 18px;
      background-color: var(--card);
      color: var(--muted);
      border: 1px solid var(--chip);
      border-radius: 30px;
      cursor: pointer;
      font-size: 15px;
      min-width: 180px;
      text-align: left;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .body-systems-toggle::after {
      content: "▼";
      font-size: 12px;
      transition: transform 0.3s;
    }

    .body-systems-toggle.active::after {
      transform: rotate(180deg);
    }

    .body-systems-menu {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--card);
      border-radius: 15px;
      box-shadow: var(--shadow);
      padding: 10px 0;
      margin-top: 5px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s;
      z-index: 1000;
      max-height: 300px;
      overflow-y: auto;
      scrollbar-width: none;
    }

    .body-systems-menu.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .body-system-option {
      display: block;
      width: 100%;
      padding: 12px 20px;
      background: none;
      border: none;
      text-align: left;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.3s;
      font-size: 14px;
      border-radius: 20px;
    }

    .body-system-option:hover {
      background-color: var(--chip);
    }

    .body-system-option.selected {
      background-color: green;
      color: white;
    }

    /* Chatbot Styles */
    .chatbot-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 1000;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    .chatbot-button {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background-color: green;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease;
    }
    
    .chatbot-button:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }
    
    .chatbot-button i {
      font-size: 24px;
    }
    
    .chatbot-window {
      position: absolute;
      bottom: 70px;
      right: 0;
      width: 350px;
      height: 450px;
      background-color: var(--panel);
      border-radius: 18px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: all 0.3s ease;
    }
    
    .chatbot-window.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    
    .chatbot-header {
      background-color: green;
      color: white;
      padding: 15px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .chatbot-header h3 {
      margin: 0;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .chatbot-close {
      background: none;
      border: none;
      color: white;
      cursor: pointer;
      font-size: 18px;
    }
    
    .chatbot-messages {
      flex: 1;
      padding: 15px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    
    .message {
      max-width: 80%;
      padding: 10px 15px;
      border-radius: 18px;
      font-size: 14px;
      line-height: 1.4;
    }
    
    .bot-message {
      background-color: var(--chip);
      color: var(--text);
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }
    
    .user-message {
      background-color: green;
      color: white;
      align-self: flex-end;
      border-bottom-right-radius: 4px;
    }
    
    .chatbot-input {
      display: flex;
      padding: 15px;
      border-top: 1px solid var(--chip);
      background-color: var(--panel);
    }
    
    .chatbot-input input {
      flex: 1;
      padding: 12px 15px;
      border: 1px solid var(--chip);
      border-radius: 25px;
      background-color: var(--card);
      color: var(--text);
      font-size: 14px;
    }
    
    .chatbot-input input:focus {
      outline: none;
      border-color: green;
    }
    
    .chatbot-input button {
      margin-left: 10px;
      background-color: green;
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
    
    .typing-indicator {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 10px 15px;
      background-color: var(--chip);
      color: var(--text);
      border-radius: 18px;
      align-self: flex-start;
      max-width: 80px;
    }
    
    .typing-dot {
      width: 6px;
      height: 6px;
      background-color: var(--muted);
      border-radius: 50%;
      animation: typingAnimation 1.4s infinite ease-in-out;
    }
    
    .typing-dot:nth-child(1) {
      animation-delay: 0s;
    }
    
    .typing-dot:nth-child(2) {
      animation-delay: 0.2s;
    }
    
    .typing-dot:nth-child(3) {
      animation-delay: 0.4s;
    }
    
    @keyframes typingAnimation {
      0%, 60%, 100% {
        transform: translateY(0);
      }
      30% {
        transform: translateY(-5px);
      }
    }
    
    @media (max-width: 480px) {
      .chatbot-window {
        width: 300px;
        right: -10px;
      }
    }

    /* ===== Profile Page Styles ===== */
.profile-section {
  margin: 30px 0;
}

.profile-card {
  background: var(--card);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-avatar {
  font-size: 80px;
  color: green;
  margin-bottom: 15px;
}

.profile-header h2 {
  color: var(--text);
  font-size: 28px;
  margin-bottom: 10px;
}

.profile-details {
  margin-bottom: 30px;
}

.detail-group {
  margin-bottom: 20px;
}

.detail-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 500;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--chip);
  border-radius: 10px;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: green;
  box-shadow: 0 0 0 3px var(--ring);
}

.input-group input:read-only {
  background-color: var(--chip);
  cursor: not-allowed;
}

.edit-btn {
  background: var(--chip);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.3s;
}

.edit-btn:hover {
  background: green;
  color: white;
  transform: scale(1.05);
}

.profile-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.save-btn, .cancel-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.save-btn {
  background: green;
  color: white;
}

.save-btn:hover:not(:disabled) {
  background: var(--brand-2);
  transform: translateY(-2px);
}

.save-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.cancel-btn {
  background: var(--chip);
  color: var(--text);
}

.cancel-btn:hover:not(:disabled) {
  background: var(--muted);
  color: white;
  transform: translateY(-2px);
}

.cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Responsive design for profile page */
@media (max-width: 768px) {
  .profile-card {
    padding: 20px;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .save-btn, .cancel-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .input-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .edit-btn {
    align-self: flex-end;
  }
}