/* ==========================================================================
   Variables & Root Settings
   ========================================================================== */
   :root {
    /* Dark Theme (Default) */
    --primary-color: #3498db;
    --accent-color: #2980b9;
    --text-color: #f5f5f5;
    --bg-color: #121212;
    --panel-bg: #202020;
    --panel-border: #3a3a3a;
    --input-bg: #2a2a2a;
    --card-bg: #2a2a2a;
    
    /* Light Theme Variables */
    --light-primary-color: #2196F3;
    --light-accent-color: #1976D2;
    --light-text-color: #333333;
    --light-bg-color: #f5f5f5;
    --light-panel-bg: #ffffff;
    --light-panel-border: #e0e0e0;
    --light-input-bg: #ffffff;
    --light-card-bg: #f0f0f0;
  }
  
  /* ==========================================================================
     Reset & Base Styles
     ========================================================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  
  input, select, textarea {
    font-size: 16px !important;
  }
  
  /* ==========================================================================
     Performance Optimizations
     ========================================================================== */
  .room-info-panel,
  .navigation-panel {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: translateZ(0);
  }
  
  /* ==========================================================================
     Common Components & Shared Styles
     ========================================================================== */
  .room-info-panel,
  .navigation-panel,
  .navigation-controls-panel,
  .path-details-panel {
    background-color: var(--panel-bg);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.3, 1), 
                opacity 0.3s cubic-bezier(0.2, 0, 0.3, 1);
    -webkit-overflow-scrolling: touch;
  }
  
  .search-input,
  #startLocation,
  #endLocation,
  #startLocationSearch,
  #locationSearch,
  .nav-select,
  .options-select {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--panel-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  
  .search-input:focus,
  #startLocationSearch:focus,
  #locationSearch:focus,
  .search-wrapper input:focus {
    border: 2px solid #2196F3 !important;
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.7) !important;
    outline: none !important;
    background-color: rgba(33, 150, 243, 0.08) !important;
  }
  
  .find-path-btn,
  .start-navigation-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  }

  .control-panel-start-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    min-height: 44px;
  }

  .directions-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    width: 100%; 
    font-size: 1rem;
    min-height: 44px;
  }
  
  .start-navigation-btn:hover {
    background-color: #7c7c7c !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transition: none !important;
  }

  .control-panel-start-btn:hover {
    background-color: var(--accent-color);
  }

  .find-path-btn:hover:not(.btn-disabled) {
    background-color: var(--accent-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  }

  .directions-button:hover {
    background-color: var(--accent-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  }  
  
  .find-path-btn:active:not(.btn-disabled),
  .directions-button:active,
  .control-panel-start-btn:active {
    transform: scale(0.98);
  }
  
  .control-panel-start-btn.active {
    background-color: #e74c3c;
  }
  
  .control-panel-start-btn.active:hover {
    background-color: #c0392b;
  }
  
  button:active {
    transform: scale(0.97);
  }
  
  .close-nav-btn,
  .stop-nav-btn{
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
  }
  
  /* ==========================================================================
     Room Info Panel
     ========================================================================== */
  .room-info-panel {
    position: fixed;
    bottom: -75vh; 
    left: 0;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.3, 1), 
                opacity 0.3s cubic-bezier(0.2, 0, 0.3, 1), 
                bottom 0.3s cubic-bezier(0.2, 0, 0.3, 1) !important;
    max-height: 75vh; 
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  
  .room-info-panel.dragging {
    transition: none !important;
  }
  
  .room-info-panel.sliding-out {
    transform: translateY(100%) !important;
    opacity: 0 !important;
  }
  
  .room-info-panel.visible {
    transform: none !important;
  }
  
  .room-info-handle {
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: sticky;
    top: 0;
    background-color: var(--panel-bg);
    z-index: 2;
    padding-top: 8px;
    padding-bottom: 8px;
    touch-action: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  .handle-indicator {
    width: 60px;
    height: 5px;
    background-color: #666;
    border-radius: 3px;
  }
  
  .room-info-handle:hover .handle-indicator {
    background-color: #888;
  }
  
  .room-info-handle:active .handle-indicator {
    background-color: var(--primary-color);
    height: 6px;
    transition: background-color 0.2s, height 0.2s;
  }
  
  .room-info-content {
    padding: 0 15px 20px 15px;
  }
  
  .room-image-container {
    margin-bottom: 15px;
  }
  
  .room-image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
  }
  
  .room-details h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
  }
  
  .room-details p {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.5;
    font-size: 0.95rem;
  }
  
  .professor-profiles {
    margin: 15px 0;
  }
  
  .professor-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--card-bg);
    border-radius: 8px;
  }
  
  .professor-card:last-child {
    margin-bottom: 20px;
  }
  
  .professor-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
  }
  
  .professor-info {
    flex: 1;
  }
  
  .professor-name {
    font-weight: bold;
    margin-bottom: 3px;
    font-size: 0.95rem;
  }
  
  .professor-title {
    font-size: 0.85rem;
    color: #aaa;
  }
  
  .no-professors {
    font-style: italic;
    color: #888;
    margin: 10px 0 20px;
    font-size: 0.9rem;
  }
  
  /* ==========================================================================
     Navigation Panel
     ========================================================================== */
  .navigation-panel {
    position: fixed;
    top: -100%; 
    left: 0;
    width: 100%;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.3, 1), 
                opacity 0.3s cubic-bezier(0.2, 0, 0.3, 1), 
                top 0.3s cubic-bezier(0.2, 0, 0.3, 1) !important;
    z-index: 101;
    padding: 15px;
    max-height: 75vh;
  }
  
  .navigation-panel.visible {
    top: 0;
  }
  
  .navigation-panel.sliding-out {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
  }
  
  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .nav-header h3 {
    font-size: 1.2rem;
  }
  
  .nav-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .input-group label {
    font-size: 0.95rem;
    font-weight: 500;
  }
  
  .location-helper {
    font-size: 0.85rem;
    color: #bbb;
    margin-top: 4px;
    transition: color 0.3s;
  }
  
  .input-group:hover .location-helper {
    color: #fff;
  }
  
  select.nav-select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23888' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 24px;
    padding-right: 36px;
  }
  
  .search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--input-bg);
    border: 1px solid var(--panel-border);
    border-top: none;
    border-radius: 0 0 5px 5px;
    z-index: 102;
  }
  
  .search-result-item {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
  }
  
  .search-result-item:hover {
    background-color: #3a3a3a;
  }
  
  .search-result-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
  }
  
  .search-result-item:hover::after {
    width: 100%;
  }
  
  .no-results {
    padding: 12px;
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
  }
  
  .search-result-item.professor-match {
    border-left: 3px solid var(--primary-color);
  }
  
  .result-main {
    font-weight: bold;
  }
  
  .result-professors {
    font-size: 0.85em;
    color: #555;
    margin-top: 2px;
  }
  
  .result-professor {
    margin-top: 2px;
  }
  
  .same-location {
    opacity: 0.6;
    position: relative;
  }
  
  .same-location::after {
    content: "⚠️";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .navigation-controls-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    z-index: 110;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  .nav-controls-header h3 {
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
  }
  
  .path-details-container {
    display: flex;
    justify-content: space-around;
    padding: 12px 15px;
    border-bottom: 1px solid var(--panel-border);
  }
  
  body.navigation-active .navigation-panel,
  .navigation-controls-panel-active .navigation-panel {
    display: none !important;
  }
  
  body.navigation-active .room-info-panel,
  .navigation-controls-panel-active .room-info-panel {
    bottom: -100% !important;
  }
  
  .start-navigation-btn {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 30px !important;
    width: auto !important;
    max-width: 300px !important;
    padding: 14px 30px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    z-index: 110 !important;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
  }
  
  .start-navigation-btn:active {
    transform: translateX(-50%) scale(0.97) !important;
  }
  
  .navigation-controls-panel-active .start-navigation-btn,
  .navigation-controls-panel-active .path-details-panel {
    display: none !important;
  }
  
  .btn-disabled,
  .navigation-controls-panel-active .find-path-btn,
  body.navigation-active .find-path-btn {
    background-color: #7c7c7c !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
  
  .path-details-panel {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 8px 12px;
    z-index: 99;
    display: flex;
    gap: 15px;
    color: white;
  }
  
  .path-detail {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .detail-icon {
    font-style: normal;
  }
  
  /* ==========================================================================
     Direction Indicators and Navigation Elements
     ========================================================================== */
  .direction-arrow {
    position: fixed;
    display: none;
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.8);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 24px;
    transform: translate(-50%, -50%);
    z-index: 90;
    pointer-events: none;
  }
  
  .you-are-here {
    position: fixed;
    display: none;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 98;
    pointer-events: none;
    white-space: nowrap;
  }
  
  .pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #3498db;
    border-radius: 50%;
    margin-right: 8px;
    animation: enhanced-pulse 1.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
  }
  
  .navigation-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    z-index: 100;
    transition: width 0.3s ease-out;
  }
  
  /* ==========================================================================
     Status Messages & Validation
     ========================================================================== */
  .status-message {
    position: fixed;
    top: 20px;          
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 12px 20px;
    border-radius: 8px;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    font-weight: 500;
    z-index: 105;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    width: 90%;
    max-width: 400px;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .status-message.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  .status-message.error {
    background-color: rgba(231, 76, 60, 0.9);
  }
  
  .status-message.success {
    background-color: rgba(46, 204, 113, 0.9);
  }
  
  .input-error {
    border: 1px solid #e74c3c !important;
  }
  
  .error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
  }
  
  .helper-text {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 3px;
  }
  
  .missing-input-glow {
    animation: yellow-glow 2s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
    border-color: #FFD700 !important;
  }
  
  .glow-text {
    color: #FFD700 !important;
    font-weight: bold;
    animation: text-pulse 2s infinite ease-in-out;
  }
  
  /* ==========================================================================
     Options Panel
     ========================================================================== */
  
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
  }
  
  .toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .4s;
    border-radius: 24px;
  }
  
  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  .toggle-input:checked + .toggle-slider {
    background-color: var(--primary-color);
  }
  
  .toggle-input:checked + .toggle-slider:before {
    transform: translateX(24px);
  }
  
  /* ==========================================================================
     Building Tooltip & Visual Feedback
     ========================================================================== */
  .building-tooltip {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    max-width: 300px;
    text-overflow: ellipsis;
    overflow: hidden;
    border: 1px solid var(--primary-color);
    transform: translateZ(0);
  }
  
  .tap-ripple {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: ripple 0.8s cubic-bezier(0, 0.5, 0.5, 1) forwards;
    z-index: 90;
  }
  
  .tap-highlight {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(0);
    animation: tapHighlight 0.5s ease-out forwards;
  }
  
  .destination-highlight {
    animation: destination-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) !important;
    outline: 2px solid var(--primary-color) !important;
  }
  
  .destination-flash {
    animation: destination-flash 0.8s ease-out;
    background-color: transparent;
    pointer-events: none;
  }
  
  #destinationName {
    position: relative;
    display: inline-block;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }
  
  #destinationName.highlight {
    animation: destination-name-highlight 1.5s ease-out;
  }
  
  .destination-set #locationSearch::before,
  .destination-set .search-wrapper::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0;
    animation: check-fade-in 0.5s forwards 0.3s;
  }
  
  /* ==========================================================================
     Accessibility Support
     ========================================================================== */
  @supports (padding: max(0px)) {
    .room-info-panel, 
    .navigation-panel {
      padding-left: max(15px, env(safe-area-inset-left));
      padding-right: max(15px, env(safe-area-inset-right));
    }
  
    .room-info-panel {
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
  
    .start-navigation-btn {
      bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }
  }
  
  /* ==========================================================================
     Scrollbar Styling
     ========================================================================== */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.3);
    border-radius: 3px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(150, 150, 150, 0.5);
  }
  
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(150, 150, 150, 0.3) transparent;
  }
  
  .search-results::-webkit-scrollbar {
    width: 4px;
  }
  
  .search-results::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.2);
  }
  
  .search-results {
    scrollbar-width: thin;
    scrollbar-color: rgba(150, 150, 150, 0.2) transparent;
  }
  
  .room-info-panel::-webkit-scrollbar {
    width: 5px;
  }
  
  .room-info-panel::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.25);
  }
  
  .room-info-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(150, 150, 150, 0.25) transparent;
  }
  
  /* ==========================================================================
     Animations
     ========================================================================== */
  @keyframes enhanced-pulse {
    0% {
      transform: scale(0.8);
      opacity: 0.7;
      box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    50% {
      transform: scale(1.2);
      opacity: 1;
      box-shadow: 0 0 0 5px rgba(52, 152, 219, 0);
    }
    100% {
      transform: scale(0.8);
      opacity: 0.7;
      box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
  }
  
  @keyframes ripple {
    0% { 
      transform: translate(-50%, -50%) scale(0.5);
      opacity: 1;
    }
    100% { 
      transform: translate(-50%, -50%) scale(2);
      opacity: 0;
    }
  }
  
  @keyframes tapHighlight {
    0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0.5;
    }
    100% {
      transform: translate(-50%, -50%) scale(2);
      opacity: 0;
    }
  }
  
  @keyframes destination-pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.8);
      background-color: rgba(52, 152, 219, 0.1);
    }
    50% {
      box-shadow: 0 0 0 8px rgba(52, 152, 219, 0);
      background-color: rgba(52, 152, 219, 0.2);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
      background-color: transparent;
    }
  }
  
  @keyframes destination-flash {
    0% {
      box-shadow: inset 0 0 0 2px var(--primary-color);
      background-color: rgba(52, 152, 219, 0);
    }
    10% {
      box-shadow: inset 0 0 0 2px var(--primary-color);
      background-color: rgba(52, 152, 219, 0.4);
    }
    100% {
      box-shadow: inset 0 0 0 2px rgba(52, 152, 219, 0);
      background-color: rgba(52, 152, 219, 0);
    }
  }
  
  @keyframes check-fade-in {
    from { 
      opacity: 0;
      transform: translateY(-50%) scale(0.8);
    }
    to { 
      opacity: 1;
      transform: translateY(-50%) scale(1);
    }
  }
  
  @keyframes destination-name-highlight {
    0% {
      color: var(--text-color);
      text-shadow: 0 0 0 rgba(52, 152, 219, 0);
    }
    30% {
      color: var(--primary-color);
      text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    }
    100% {
      color: var(--text-color);
      text-shadow: 0 0 0 rgba(52, 152, 219, 0);
    }
  }
  
  @keyframes yellow-glow {
    0%, 100% {
      box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
    }
    50% {
      box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    }
  }
  
  @keyframes light-yellow-glow {
    0%, 100% {
      box-shadow: 0 0 8px rgba(255, 152, 0, 0.7);
    }
    50% {
      box-shadow: 0 0 15px rgba(255, 152, 0, 1);
    }
  }
  
  @keyframes text-pulse {
    0%, 100% {
      opacity: 0.8;
    }
    50% {
      opacity: 1;
    }
  }
  
  @keyframes agent-pulse {
    0% {
      opacity: 0.7;
      transform: scale(0.95);
    }
    100% {
      opacity: 1;
      transform: scale(1.05);
    }
  }
  
  @keyframes panel-glow {
    0% { 
      box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
    }
    30% { 
      box-shadow: 0 0 20px rgba(74, 144, 226, 0.7);
    }
    100% { 
      box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
    }
  }
  
  @keyframes room-title-glow {
    0% { text-shadow: 0 0 0px rgba(74, 144, 226, 0); }
    30% { text-shadow: 0 0 10px rgba(74, 144, 226, 0.8); }
    100% { text-shadow: 0 0 0px rgba(74, 144, 226, 0); }
  }
  
  @keyframes content-fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes slideIn {
    0% {
      transform: translateY(-100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes slideOut {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(-100%);
      opacity: 0;
    }
  }
  
  @keyframes panelBounce {
    0% { transform: translateY(20px); }
    100% { transform: translateY(0); }
  }
  
  .room-info-panel-glow {
    animation: panel-glow 1.2s ease-out;
  }
  
  .room-name-glow {
    animation: room-title-glow 1.5s ease-out;
  }
  
  .content-fade-in {
    animation: content-fade-in 0.3s ease-out forwards;
  }
  
  .animate-in {
    animation: slideIn 0.3s cubic-bezier(0.2, 0, 0.3, 1) forwards;
  }
  
  .animate-out {
    animation: slideOut 0.3s cubic-bezier(0.2, 0, 0.3, 1) forwards;
  }
  
  .no-transition {
    transition: none !important;
  }
  
  .agent-returning {
    animation: agent-pulse 1s infinite alternate;
  }
  
  .find-path-btn:not(.btn-disabled) {
    position: relative;
    overflow: hidden;
  }
  
  .find-path-btn:not(.btn-disabled)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
  }
  
  .find-path-btn:not(.btn-disabled):hover::after {
    transform: scale(1.5);
    opacity: 1;
  }
  
  
  /* ==========================================================================
     UI State & Appearance
     ========================================================================== */
  body.navigation-open,
  body.room-info-visible {
    overflow: hidden;
  }
  
  body.navigation-panel-visible {
    top: 85px;
  }
  
  body.room-info-visible.navigation-controls-panel-active .room-info-panel {
    bottom: 90px;
  }
  
  .navigation-active * {
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* ==========================================================================
     Theme Variants (Dark/Light/High Contrast)
     ========================================================================== */
  .high-contrast {
    --primary-color: #00b0ff;
    --accent-color: #0091ea;
    --text-color: #ffffff;
    --bg-color: #000000;
    --panel-bg: #121212;
    --panel-border: #444444;
    --input-bg: #1a1a1a;
    --card-bg: #1a1a1a;
  }
  
  .high-contrast .toggle-input:checked + .toggle-slider {
    background-color: #00b0ff;
  }

    body.dark-theme .room-info-panel-glow {
      animation-name: panel-glow-dark;
    }
    
    @keyframes panel-glow-dark {
      0% { 
        box-shadow: 0 0 5px rgba(100, 180, 255, 0.3);
      }
      30% { 
        box-shadow: 0 0 40px rgba(100, 180, 255, 0.7);
      }
      100% { 
        box-shadow: 0 0 5px rgba(100, 180, 255, 0.3);
      }
    }
    
    body.dark-theme .room-name-glow {
      animation-name: room-title-glow-dark;
    }
    
    @keyframes room-title-glow-dark {
      0% { text-shadow: 0 0 0px rgba(100, 180, 255, 0); }
      30% { text-shadow: 0 0 10px rgba(100, 180, 255, 0.8); }
      100% { text-shadow: 0 0 0px rgba(100, 180, 255, 0); }
    }
  
  .light-theme {
    --primary-color: #2196F3;
    --accent-color: #1976D2;
    --text-color: #333333;
    --bg-color: #f5f5f5;
    --panel-bg: #ffffff;
    --panel-border: #e0e0e0;
    --input-bg: #ffffff;
    --card-bg: #f0f0f0;
  }
  
  .light-theme .toggle-slider {
    background-color: #cccccc;
  }
  
  .light-theme .room-details p {
    color: #444444;
  }
  
  .light-theme .professor-card {
    background-color: #f0f0f0;
    border: 1px solid #dddddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  .light-theme .professor-image {
    border-color: var(--primary-color);
  }
  
  .light-theme .professor-name {
    color: #333333;
    font-weight: bold;
  }
  
  .light-theme .professor-title {
    color: #555555;
  }
  
  .light-theme .no-professors {
    color: #666666;
  }
  
  .light-theme .search-result-item:hover {
    background-color: rgba(100, 150, 255, 0.2);
  }
  
  .light-theme .path-details-container,
  .light-theme .path-details-panel {
    background-color: rgba(240, 240, 240, 0.9);
    color: #333333;
  }
  
  .light-theme .you-are-here {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .light-theme .building-tooltip {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .light-theme .missing-input-glow {
    animation: light-yellow-glow 2s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(255, 180, 0, 0.9);
    border-color: #FF9800 !important;
  }
  
  .light-theme .glow-text {
    color: #FF6F00 !important;
    text-shadow: 0 0 2px rgba(255, 111, 0, 0.2);
  }
  
  .light-theme ::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.2);
  }
  
  .light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 0.4);
  }
  
  .light-theme * {
    scrollbar-color: rgba(100, 100, 100, 0.2) transparent;
  }

  /* ==========================================================================
     Responsive Styles
     ========================================================================== */
     @media (min-width: 768px) {
      .room-info-panel {
          width: 400px;
          left: 20px;
          border-radius: 15px;
          max-height: 50vh !important;
          overflow-y: auto;
          top: auto;
      }

      .room-info-handle {
          height: 40px;
          border-top-left-radius: 15px;
          border-top-right-radius: 15px;
      }
        
      .handle-indicator {
          width: 50px;
          height: 5px;
      }
      
    
      .navigation-panel {
        width: 400px;
        left: 20px;
        top: 20px;
        border-radius: 15px;
      }
    
      .navigation-panel.visible {
        top: 20px;
      }
    
      .navigation-panel.sliding-out {
        transform: translateX(-100%) !important;
        opacity: 0 !important;
      }
    
      .directions-button {
        width: auto;
      }
    
      .start-navigation-btn {
        width: auto !important;
      }
    
      .room-details h2 {
        font-size: 1.5rem;
      }
    
      .room-details p {
        font-size: 1rem;
      }
    
      .navigation-controls-panel {
        left: auto;
        right: 20px;
        transform: none;
      }
    
      .path-details-panel {
        left: 220px;
        transform: none;
      }
      
      @keyframes slideIn {
        0% {
          transform: translateX(-20px);
          opacity: 0;
        }
        100% {
          transform: translateX(0);
          opacity: 1;
        }
      }
    
      @keyframes slideOut {
        0% {
          transform: translateX(0);
          opacity: 1;
        }
        100% {
          transform: translateX(-100%);
          opacity: 0;
        }
      }
    }
    
    @media (max-width: 767px) {
      .room-info-panel {
        max-height: calc(75vh + 5px);
        will-change: transform;
        transform: translateZ(0);
      }
      
      .room-info-panel.visible {
        transform: translateY(0) !important;
        animation: panelBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      
      body.room-info-visible {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
      }
      
      .room-info-content {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 15px));
      }
      
      .navigation-panel {
        transition: transform 0.3s cubic-bezier(0.2, 0, 0.3, 1), 
                    opacity 0.3s cubic-bezier(0.2, 0, 0.3, 1), 
                    top 0.3s cubic-bezier(0.2, 0, 0.3, 1) !important;
        transform: translateY(-100%);
        top: 0;
      }
      
      .navigation-panel.visible {
        transform: translateY(0);
        top: 0;
      }
      
      body.navigation-open .room-info-panel.visible {
        bottom: -75vh !important;
      }
      
      body.navigation-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
      }
      
      .directions-button {
        padding: 15px 20px;
        margin-bottom: 15px;
        width: 100%;
      }
    
      .start-navigation-btn {
        width: 90% !important;
      }
    
      .options-panel.visible {
        width: 90%;
        left: 5%;
        right: 5%;
      }
      
      body.room-info-visible .options-panel.visible {
        max-height: calc(100vh - 250px);
      }
    
      .room-info-panel {
        max-height: 85vh;
      }
    
      .room-info-content {
        padding-bottom: 70px;
      }
      
      .close-nav-btn,
      .stop-nav-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .nav-header {
        padding: 5px 10px;
      }
      
      .room-info-handle {
        height: 54px;
        padding-top: 12px;
        padding-bottom: 8px;
      }
      
      .handle-indicator {
        width: 70px;
        height: 6px;
      }
    }
    
    @media (max-width: 767px) and (orientation: landscape) {
      .room-info-panel {
        max-height: 90vh;
      }
    
      .professor-card {
        max-width: 48%;
        display: inline-flex;
        margin-right: 2%;
      }
    }
    
    @media (max-width: 320px) {
      .professor-image {
        width: 45px;
        height: 45px;
      }
    
      .professor-name {
        font-size: 0.85rem;
      }
    
      .professor-title {
        font-size: 0.75rem;
      }
    }
    
    /* ==========================================================================
       Print Styles
       ========================================================================== */
    @media print {
      .room-info-panel {
        position: static;
        box-shadow: none;
        max-height: none;
        overflow: visible;
      }
      
      .directions-button,
      .navigation-panel,
      .start-navigation-btn,
      .navigation-controls-panel {
        display: none !important;
      }
    }
    
.room-info-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.starting-point-button {
  background-color: #8e44ad;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  width: 100%; 
  font-size: 1rem;
  min-height: 44px;
}

.starting-point-button:hover {
  background-color: #9b59b6;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.starting-point-button:active {
  transform: scale(0.98);
}

.starting-point-button.btn-disabled {
  background-color: #7c7c7c !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transition: none !important;
}

.starting-point-highlight {
  animation: starting-point-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) !important;
  outline: 2px solid #8e44ad !important;
}

@keyframes starting-point-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.8);
    background-color: rgba(142, 68, 173, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(142, 68, 173, 0);
    background-color: rgba(142, 68, 173, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(142, 68, 173, 0);
    background-color: transparent;
  }
}

@media (min-width: 768px) {
  .room-info-buttons {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .room-info-buttons .directions-button,
  .room-info-buttons .starting-point-button {
    width: 48%;
  }
}











.mobile-top-search {
  position: absolute;
  width: 60%;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 0;
  z-index: 101;
  background: transparent;
  box-shadow: none;
  top: 0;
  pointer-events: auto;
  display: none;
}

@media (max-width: 767px) {
  .mobile-top-search {
    display: block;
    padding-top: calc(20px + env(safe-area-inset-top, 20px));
    width: 60%;
  }
  
  body {
    padding-top: 0;
  }
}

.mobile-top-search .search-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 0;
  margin: 0 auto;
}

.mobile-top-search .search-input {
  width: 100%;
  padding: 12px 45px;
  border-radius: 24px;
  border: none;
  background-color: rgba(40, 40, 40, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--text-color);
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s, transform 0.3s;
}

.mobile-top-search .search-input:focus {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.mobile-top-search .search-wrapper::before {
  content: "🔍";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.7;
  z-index: 5;
}

.mobile-top-search .search-clear {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-color);
  opacity: 0.7;
  cursor: pointer;
  font-size: 18px;
  display: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.mobile-top-search .search-clear:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.mobile-top-search .search-clear.visible {
  display: flex;
}

.mobile-top-search .search-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  background-color: var(--panel-bg);
  border-radius: 12px;
  z-index: 102;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: slideDown 0.2s ease-out forwards;
}

.search-result-item {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(100, 100, 100, 0.1);
}

.search-result-item:last-child {
  border-bottom: none;
}

body.light-theme .mobile-top-search .search-input {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.light-theme .mobile-top-search .search-results {
  background-color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}



.menu-dropdown {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.menu-toggle-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--panel-bg);
  color: var(--text-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s, transform 0.1s;
  font-size: 24px;
  z-index: 1001;
}

.menu-toggle-btn:hover {
  background-color: var(--primary-color);
}

.menu-toggle-btn:active {
  transform: scale(0.95);
}

.menu-icon {
  font-size: 20px;
  line-height: 1;
}

.dropdown-content {
  position: absolute;
  top: 55px;
  right: 0;
  width: 280px;
  max-height: 80vh;
  overflow-y: auto;
  background-color: var(--panel-bg);
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}

.menu-dropdown.open .dropdown-content {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dropdown-header {
  padding: 15px;
  border-bottom: 1px solid var(--panel-border);
}

.dropdown-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.dropdown-section {
  padding: 10px 15px;
  border-bottom: 1px solid var(--panel-border);
}

.dropdown-section:last-child {
  border-bottom: none;
}

.dropdown-section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
}

.dropdown-action-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 8px;
  border: none;
  border-radius: 6px;
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--text-color);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s, transform 0.1s;
}

.dropdown-action-btn:last-child {
  margin-bottom: 0;
}

.dropdown-action-btn:hover {
  background-color: rgba(52, 152, 219, 0.3);
}

.dropdown-action-btn:active {
  transform: scale(0.98);
}

.btn-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 16px;
}

body.light-theme .menu-toggle-btn {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

body.light-theme .dropdown-content {
  background-color: white;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

body.light-theme .dropdown-action-btn {
  background-color: rgba(52, 152, 219, 0.05);
}

body.light-theme .dropdown-action-btn:hover {
  background-color: rgba(52, 152, 219, 0.15);
}

@media (max-width: 767px) {
  .menu-dropdown {
    top: 15px;
    right: 15px;
  }
  
  .dropdown-content {
    width: 250px;
    max-height: 70vh;
  }
  
  @supports (padding: max(0px)) {
    .menu-dropdown {
      top: max(15px, env(safe-area-inset-top, 15px));
      right: max(15px, env(safe-area-inset-right, 15px));
    }
  }
}

.dropdown-content::-webkit-scrollbar {
  width: 5px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(150, 150, 150, 0.3);
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 150, 150, 0.5);
}

.dropdown-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 150, 150, 0.3) transparent;
}


.options-select {
  width: 120px !important;
  min-width: 120px;
  max-width: 120px;
  padding-right: 30px;
  flex-shrink: 0;
}

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.option-item label {
  flex-grow: 1;
  padding-right: 10px;
  white-space: nowrap;
}

.toggle-switch {
  width: 48px !important;
  min-width: 48px;
  flex-shrink: 0;
}

select.options-select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23888' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.floor-switcher-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}



@keyframes facility-marker-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

@keyframes facility-marker-hover {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.5rem);
  }
  100% {
    transform: translateY(0);
  }
}

.facility-label {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s;
  user-select: none;
}

.facility-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
}

.option-item:has(#showAllFacilities) {
  margin-bottom: 15px;
}

#showAllFacilities {
  background-color: var(--input-bg);
  border-color: var(--panel-border);
}

#showAllFacilities {
  border-left: 3px solid #FF9800;
}

#showAllFacilities {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23888' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 30px;
}



@supports (padding: max(0px)) {
  .facility-legend {
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    left: max(20px, env(safe-area-inset-left, 20px));
  }
}

@media (max-width: 767px) {
  .facility-legend {
    max-width: 180px;
    font-size: 11px;
  }
}


@media (min-width: 768px) {
  .room-info-panel {
    width: 320px;
    left: 20px;
    border-radius: 12px;
  }

  .room-info-handle {
    height: 36px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
    
  .handle-indicator {
    width: 40px;
    height: 4px;
  }

  .room-details h2 {
    font-size: 1.3rem;
  }

  .room-details p {
    font-size: 0.95rem;
  }
  
  .navigation-panel {
    width: 320px;
    left: 20px;
    top: 20px;
    border-radius: 12px;
    padding: 12px;
  }
  
  .input-group {
    gap: 6px;
  }
  
  .find-path-btn,
  .directions-button,
  .starting-point-button {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
  
  .professor-card {
    padding: 8px;
  }
  
  .professor-image {
    width: 50px;
    height: 50px;
  }
}



/* Zanyar */
.zanyar-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background-color: var(--panel-bg);
  border-radius: 30px;
  padding: 8px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 90;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(70, 70, 70, 0.5);
}

.zanyar-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.zanyar-button span {
  color: var(--text-color);
  opacity: 0.8;
  margin-right: 5px;
}

.zanyar-button a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.zanyar-button a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.zanyar-button a:hover:after {
  width: 100%;
}

.zanyar-button:hover a {
  text-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

body.light-theme .zanyar-button {
  background-color: var(--light-panel-bg);
  border: 1px solid rgba(200, 200, 200, 0.5);
}

body.light-theme .zanyar-button span {
  color: var(--light-text-color);
}

body.light-theme .zanyar-button a {
  color: var(--light-primary-color);
}

body.light-theme .zanyar-button a:after {
  background-color: var(--light-primary-color);
}

@supports (padding: max(0px)) {
  .zanyar-button {
    left: max(20px, env(safe-area-inset-left));
    bottom: max(20px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 767px) {
  .zanyar-button {
    left: 10px;
    bottom: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

body.navigation-active .zanyar-button,
.navigation-controls-panel-active .zanyar-button {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}