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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 60px 1fr 40px;
    height: 100vh;
    gap: 10px;
    padding: 10px;
}

.header {
    grid-column: 1 / -1;
    background-color: #2d3748;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: #4fd1c7;
}

.title-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subtitle {
    font-size: 10px;
    color: #a0aec0;
    font-weight: normal;
    opacity: 0.8;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 5px 10px;
    background-color: #4a5568;
    border-radius: 6px;
    min-width: 80px;
}

.stat-label {
    font-size: 12px;
    color: #a0aec0;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #4fd1c7;
}

/* Menu Container */
.menu-container {
    position: relative;
}

.menu-btn {
    background-color: #4a5568;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.menu-btn:hover {
    background-color: #2d3748;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.menu-dropdown.show {
    display: block;
}

.menu-section {
    padding: 15px;
}

.menu-label {
    font-size: 12px;
    color: #a0aec0;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item {
    padding: 8px 0;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.2s ease;
    font-size: 14px;
}

.menu-item:hover {
    color: #4fd1c7;
}

.menu-link {
    display: block;
    padding: 8px 0;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.menu-link:hover {
    color: #4fd1c7;
}

.menu-divider {
    height: 1px;
    background-color: #4a5568;
    margin: 0 15px;
}

.map-container {
    background-color: #2d3748;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
}

.graph-container {
    background-color: #2d3748;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
}

.panel-title {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: rgba(45, 55, 72, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #4fd1c7;
    display: flex;
    align-items: center;
    gap: 8px;
}

#map {
    width: 100%;
    height: 100%;
}

#network {
    width: 100%;
    height: 100%;
    background-color: #1a202c;
}

.log-container {
    grid-column: 1 / -1;
    background-color: #2d3748;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.log-header {
    padding: 10px 15px;
    border-bottom: 1px solid #4a5568;
    font-weight: bold;
    color: #4fd1c7;
}

.log-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.log-entry {
    margin-bottom: 5px;
    padding: 3px 5px;
    border-radius: 3px;
}

.log-entry.position {
    background-color: rgba(72, 187, 120, 0.1);
    border-left: 3px solid #48bb78;
}

.log-entry.text {
    background-color: rgba(66, 153, 225, 0.1);
    border-left: 3px solid #4299e1;
}

.log-entry.telemetry {
    background-color: rgba(237, 137, 54, 0.1);
    border-left: 3px solid #ed8936;
}

.log-entry.nodeinfo {
    background-color: rgba(159, 122, 234, 0.1);
    border-left: 3px solid #9f7aea;
}

.timestamp {
    color: #a0aec0;
    font-size: 11px;
}

.connection-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.connection-status.connected {
    background-color: rgba(72, 187, 120, 0.9);
    color: white;
}

.connection-status.disconnected {
    background-color: rgba(245, 101, 101, 0.9);
    color: white;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.search-result-item {
    padding: 10px 12px;
    border-bottom: 1px solid #4a5568;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #4a5568;
}

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

.search-result-primary {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.search-result-secondary {
    font-size: 12px;
    color: #a0aec0;
}

.search-result-tertiary {
    font-size: 11px;
    color: #718096;
    margin-top: 2px;
}

.header-search-input {
    padding: 6px 12px;
    border: 1px solid #4a5568;
    border-radius: 4px;
    background-color: #1a202c;
    color: #e2e8f0;
    font-size: 14px;
    width: 250px;
}

.header-search-input::placeholder {
    color: #718096;
}

.header-search-input:focus {
    outline: none;
    border-color: #4fd1c7;
    box-shadow: 0 0 0 2px rgba(79, 209, 199, 0.2);
}

.header-search-button {
    padding: 6px 12px;
    background-color: #4fd1c7;
    color: #1a202c;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.header-search-button:hover {
    background-color: #38b2ac;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a202c;
    margin: 50px auto;
    padding: 0;
    border: 1px solid #4a5568;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background-color: #2d3748;
    padding: 15px 20px;
    border-bottom: 1px solid #4a5568;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #4fd1c7;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #4a5568;
    color: #e2e8f0;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Keep existing search result styles but remove the search-results class max-height */
.search-results {
    padding: 0;
    background: transparent;
    border: none;
}

.search-message {
    padding: 20px;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
}

.search-result-section {
    background-color: #1a202c;
    border-radius: 6px;
    border: 1px solid #4a5568;
    margin-bottom: 15px;
    overflow: hidden;
}

.search-result-section h3 {
    background-color: #2d3748;
    color: #4fd1c7;
    margin: 0;
    padding: 12px 15px;
    font-size: 16px;
    border-bottom: 1px solid #4a5568;
}

.node-details, .packets-list {
    padding: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #a0aec0;
    min-width: 100px;
}

.detail-value {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.no-packets {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 20px;
}

.packet-item {
    background-color: #2d3748;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #4fd1c7;
}

.packet-item:last-child {
    margin-bottom: 0;
}

.packet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.packet-time {
    font-size: 12px;
    color: #a0aec0;
    font-family: 'Courier New', monospace;
}

.packet-type {
    background-color: #4a5568;
    color: #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.packet-route {
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.packet-channel, .packet-signal {
    font-size: 11px;
    color: #a0aec0;
    margin-bottom: 4px;
}

.packet-payload {
    background-color: #1a202c;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #e2e8f0;
    margin-top: 8px;
    border-left: 2px solid #38b2ac;
    font-family: 'Courier New', monospace;
}

/* Custom tooltip styles for map */
.custom-tooltip {
    background-color: rgba(26, 32, 44, 0.95) !important;
    border: 1px solid #4a5568 !important;
    border-radius: 6px !important;
    color: #e2e8f0 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.custom-tooltip:before {
    border-top-color: #4a5568 !important;
}

.leaflet-tooltip-top:before {
    border-top-color: #4a5568 !important;
}

.leaflet-tooltip-bottom:before {
    border-bottom-color: #4a5568 !important;
}

.leaflet-tooltip-left:before {
    border-left-color: #4a5568 !important;
}

.leaflet-tooltip-right:before {
    border-right-color: #4a5568 !important;
}

/* Graph tooltip styles */
#graph-tooltip img {
    border-radius: 4px;
    background: #f5f5f5;
    padding: 2px;
}

.timeframe-selector {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeframe-selector label {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

.timeframe-select {
    padding: 4px 8px;
    border: 1px solid #4a5568;
    border-radius: 4px;
    background-color: #1a202c;
    color: #e2e8f0;
    font-size: 12px;
    cursor: pointer;
}

.timeframe-select:focus {
    outline: none;
    border-color: #4fd1c7;
    box-shadow: 0 0 0 2px rgba(79, 209, 199, 0.2);
}

/* Fullscreen functionality */

.fullscreen-btn {
    background: #2d3748;
    border: 1px solid #4fd1c7;
    color: #4fd1c7;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fullscreen-btn:hover {
    background: #4fd1c7;
    color: #2d3748;
    transform: scale(1.05);
}

/* Fullscreen mode styles */
.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999;
    background-color: #1a1a1a !important;
    grid-column: unset !important;
    grid-row: unset !important;
}

.fullscreen-mode #map,
.fullscreen-mode #network {
    height: 100vh !important;
    border-radius: 0;
}

/* Hide other elements when in fullscreen mode */
body.has-fullscreen .container > *:not(.fullscreen-mode) {
    display: none !important;
}

/* Collapsible activity feed */
.collapse-btn {
    background: #2d3748;
    border: 1px solid #4fd1c7;
    color: #4fd1c7;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 10px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.collapse-btn:hover {
    background: #4fd1c7;
    color: #2d3748;
    transform: scale(1.05);
}

/* Collapsed state for activity feed (default) */
.container.activity-collapsed {
    grid-template-rows: 60px 1fr 40px;
}

.container.activity-collapsed .log-container {
    min-height: 40px;
}

.container.activity-collapsed .log-content {
    display: none;
}

/* Expanded state for activity feed */
.container:not(.activity-collapsed) {
    grid-template-rows: 60px 1fr 200px;
}

.container:not(.activity-collapsed) .log-container {
    min-height: 200px;
}

.container:not(.activity-collapsed) .log-content {
    display: block;
}

/* Ping Animation Effects */
.ping-animation {
    position: absolute;
    border: 2px solid #4fd1c7;
    border-radius: 50%;
    background-color: rgba(79, 209, 199, 0.2);
    pointer-events: none;
    z-index: 10000 !important;
    animation: ping 1.5s ease-out forwards;
    box-shadow: 0 0 10px rgba(79, 209, 199, 0.5);
}

.ping-animation-secondary {
    position: absolute;
    border: 2px solid #81e6d9;
    border-radius: 50%;
    background-color: rgba(129, 230, 217, 0.1);
    pointer-events: none;
    z-index: 9999 !important;
    animation: ping 1.5s ease-out 0.3s forwards;
    box-shadow: 0 0 8px rgba(129, 230, 217, 0.3);
}

@keyframes ping {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 0.5;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Map ping specific styles */
.leaflet-ping-container {
    position: relative;
    pointer-events: none;
}

.leaflet-ping-circle {
    pointer-events: none !important;
    z-index: 1000 !important;
}

.leaflet-ping-circle-secondary {
    pointer-events: none !important;
    z-index: 999 !important;
}

.leaflet-ping-circle-inner {
    pointer-events: none !important;
    z-index: 1001 !important;
}

/* Graph ping specific styles */
.vis-network .ping-node {
    position: absolute;
    border: 3px solid #4fd1c7;
    border-radius: 50%;
    background-color: rgba(79, 209, 199, 0.3);
    pointer-events: none;
    z-index: 10000 !important;
    animation: graphPing 1.2s ease-out forwards;
    box-shadow: 0 0 15px rgba(79, 209, 199, 0.6);
}

.ping-node {
    position: absolute;
    border: 3px solid #4fd1c7;
    border-radius: 50%;
    background-color: rgba(79, 209, 199, 0.3);
    pointer-events: none;
    z-index: 10000 !important;
    animation: graphPing 1.2s ease-out forwards;
    box-shadow: 0 0 15px rgba(79, 209, 199, 0.6);
}

@keyframes graphPing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading overlay for URL focus */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(2px);
}

.loading-content {
    background-color: #2d3748;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #4a5568;
    border-top: 4px solid #4fd1c7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.loading-subtext {
    color: #a0aec0;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Temperature map tooltip styles */
.temp-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 12px !important;
    padding: 2px 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.temp-tooltip::before {
    display: none !important;
}

/* Temperature label styles */
.temperature-label {
  border: none !important;
  background: transparent !important;
}

.node-tooltip {
  background: white !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  color: #333 !important;
  font-size: 12px !important;
  padding: 8px !important;
}

/* Temperature map button specific styles */
.temperature-map-btn {
    margin-left: 5px;
}

.temperature-map-btn.active {
    background: #48bb78 !important;
    border-color: #48bb78 !important;
    color: #ffffff !important;
}

.temperature-map-btn.active:hover {
    background: #38a169 !important;
    border-color: #38a169 !important;
    color: #ffffff !important;
}

/* Mobile navigation buttons */
.mobile-nav-buttons {
    display: none;
    gap: 5px;
    margin-right: 10px;
    z-index: 100;
    position: relative;
}

.mobile-nav-btn {
    background-color: #4a5568;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

.mobile-nav-btn:hover {
    background-color: #2d3748;
}

.mobile-nav-btn.active {
    background-color: #4fd1c7;
    color: #1a202c;
}

.mobile-nav-btn.active:hover {
    background-color: #38b2ac;
}

/* Mobile view management */
.mobile-view-hidden {
    display: none !important;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet breakpoint */
@media screen and (max-width: 1024px) {
    .container {
        gap: 8px;
        padding: 8px;
    }
    
    .header-search-input {
        width: 200px;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 70px;
        padding: 4px 8px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* Mobile breakpoint */
@media screen and (max-width: 768px) {
    .header-center,
    .stats {
        display: none;
    }

    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 60px calc(100vh - 60px);
        gap: 0;
        padding: 0;
        height: 100vh;
    }
    
    /* Make containers full screen on mobile */
    .map-container,
    .graph-container,
    .log-container {
        grid-row: 2;
        grid-column: 1;
        z-index: 1; /* Ensure containers are below header */
        height: calc(100vh - 60px); /* Full height minus header */
        border-radius: 0; /* Remove border radius on mobile for full screen */
    }
    
    /* Initially hide graph and feed on mobile (map is default) */
    .graph-container,
    .log-container {
        display: none;
    }
    
    .header {
        padding: 0 10px;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center; /* Vertically align items */
        min-height: 60px;
        position: relative;
        z-index: 1000; /* Increase header z-index */
    }
    
    .header-left {
       width: auto;
    }
    
    .header-right {
        width: auto;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    /* Show mobile navigation buttons */
    .mobile-nav-buttons {
        display: flex !important;
        order: 1;
        gap: 10px;
        margin-right: 0;
        background-color: transparent;
        padding: 0;
    }
    
    .menu-container {
        order: 2;
        position: relative; /* This is required for the dropdown to position correctly */
        z-index: 1001; /* Higher z-index for menu container */
    }
    
    .menu-btn {
        z-index: 1002; /* Ensure menu button is clickable */
        position: relative;
    }
    
    .title {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 9px;
    }
    
    .menu-dropdown {
        right: 0; /* Re-align to the right */
        left: auto;
        transform: none;
        z-index: 1003; /* Highest z-index for dropdown */
        position: fixed; /* Use fixed positioning on mobile */
        top: 70px; /* Position below header */
    }
}

/* Small mobile breakpoint */
@media screen and (max-width: 480px) {
    .header {
        padding: 8px;
        gap: 8px;
    }
    
    .title {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 8px;
    }
    
    .header-search-input {
        width: 200px;
        max-width: 85vw;
        font-size: 12px;
    }
    
    .header-search-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .mobile-nav-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-height: 44px;
        min-width: 50px;
    }
    
    .stat-item {
        min-width: 50px;
        padding: 3px 6px;
    }
    
    .stat-value {
        font-size: 12px;
    }
    
    .stat-label {
        font-size: 9px;
    }
}

/* Extra small mobile adjustments */
@media screen and (max-width: 360px) {
    .title {
        font-size: 16px;
    }
    
    .header-search-input {
        width: 180px;
        max-width: 80vw;
    }
    
    .mobile-nav-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-height: 40px;
        min-width: 40px;
    }
    
    .stat-item {
        min-width: 45px;
        padding: 2px 4px;
    }
    
    .stat-value {
        font-size: 11px;
    }
    
    .stat-label {
        font-size: 8px;
    }
}

/* Mobile search dropdown fix */
@media screen and (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 5px;
        width: 100%;
        max-width: 300px;
    }
    
    .header-search-input {
        width: 100%;
    }
    
    .header-search-button {
        width: 100%;
    }
    
    .search-dropdown {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 350px;
        z-index: 1001;
    }
}

/* Touch-friendly buttons */
@media (hover: none) and (pointer: coarse) {
    .menu-btn,
    .header-search-button,
    .mobile-nav-btn {
        min-height: 44px;
    }
    
    .mobile-nav-btn {
        min-width: 44px;
    }
}
