/* Enhanced Professional Design System */

/* CSS Variables for Light and Dark Themes */
:root {
    /* Light theme */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --accent-primary: #6366f1;
    --accent-primary-hover: #4f46e5;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --accent-info: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f7f8fa 100%);
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --accent-primary: #818cf8;
    --accent-primary-hover: #6366f1;
    --accent-secondary: #a78bfa;
    --accent-success: #34d399;
    --accent-danger: #f87171;
    --accent-warning: #fbbf24;
    --accent-info: #60a5fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

/* Navigation styles are now handled in navigation-compact.css */
.navbar {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.nav-brand {
    min-width: 200px; /* Reset to original width */
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease;
    will-change: transform; /* Optimize for transforms */
    backface-visibility: hidden; /* Prevent subpixel rendering issues */
    transform: translateZ(0); /* Create compositing layer */
}

.brand-link:hover {
    transform: translateX(2px);
}

.brand-text {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 1.85rem;
    white-space: nowrap; /* Prevent text wrapping */
    letter-spacing: -0.02em;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.dashboard-hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.05;
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.dashboard-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: 'Comfortaa', sans-serif;
}

.hero-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.dashboard-title:hover .hero-logo {
    transform: rotate(10deg) scale(1.1);
}

.beta-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    margin-left: 1rem;
    vertical-align: super;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.dashboard-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Enhanced Tab System with Smooth Animations */
.tab-container {
    margin-bottom: 3rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

/* Animated Tab Indicator */
.tab-buttons::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    height: calc(100% - 1rem);
    background: var(--gradient-primary);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: var(--shadow);
    opacity: 0;
}

.tab-button {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-sm);
}

.tab-button.active {
    color: white;
    background: var(--gradient-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tab-button.active .tab-icon {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tab-icon {
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated Tab Content */
.tab-content {
    position: relative;
    overflow: hidden;
}

.tab-pane {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    pointer-events: all;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Animation for Cards */
.tab-pane.active .query-card {
    animation: cardSlideIn 0.6s ease-out backwards;
}

.tab-pane.active .query-card:nth-child(1) { animation-delay: 0.1s; }
.tab-pane.active .query-card:nth-child(2) { animation-delay: 0.2s; }
.tab-pane.active .query-card:nth-child(3) { animation-delay: 0.3s; }
.tab-pane.active .query-card:nth-child(4) { animation-delay: 0.4s; }
.tab-pane.active .query-card:nth-child(5) { animation-delay: 0.5s; }
.tab-pane.active .query-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Query Grid */
.query-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Query Cards with Hover Previews */
.query-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 180px;
}



.query-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

/* Card Hover Preview Tooltip */
.query-card-preview {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    width: 280px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .query-card-preview {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--accent-primary);
}

.query-card:hover .query-card-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(calc(-100% - 10px));
}

/* Preview Content */
.preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.preview-icon {
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.preview-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.preview-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.preview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0.25rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.preview-stat-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.preview-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
}

/* Preview Arrow */
.query-card-preview::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--accent-primary);
}

/* Enhanced Card Content Layout */
.query-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.query-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.query-card-type {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.query-card.featured {
    grid-column: span 2;
    background: var(--gradient-card);
    border: 2px solid var(--accent-primary);
}

.query-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.query-card:hover .query-icon {
    transform: rotate(10deg) scale(1.1);
}

.query-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.query-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.query-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.query-badge {
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-weight: 500;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Category Headers */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-count {
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: white;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--border-light);
    object-fit: cover;
}

[data-theme="dark"] .user-avatar {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .query-grid {
        grid-template-columns: 1fr;
    }
    
    .query-card.featured {
        grid-column: span 1;
    }
    
    .tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* Loading Animation */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hive Price Display */
.hive-price-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    min-width: 168px;
    transition: all 0.2s ease;
}

.hive-price-display:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-sm);
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.price-symbol {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.price-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price-change {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.price-change.positive {
    color: var(--accent-success) !important;
}

.price-change.negative {
    color: var(--accent-danger) !important;
}

/* Ensure colors work in dark mode */
[data-theme="dark"] .price-change.positive {
    color: #10b981 !important;
}

[data-theme="dark"] .price-change.negative {
    color: #ef4444 !important;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none !important;
    border: none !important;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.user-profile-btn:hover,
.user-profile-btn:focus,
.user-profile-btn:active {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

[data-theme="dark"] .user-profile-btn,
[data-theme="dark"] .user-profile-btn:hover,
[data-theme="dark"] .user-profile-btn:focus,
[data-theme="dark"] .user-profile-btn:active {
    background: none !important;
    background-color: transparent !important;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.user-profile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0 0 6px 6px; /* Remove top rounded corners */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 160px; /* Make dropdown wider */
    z-index: 99999;
    transform: translateZ(0);
    will-change: transform;
    overflow: hidden;
}

.dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="dark"] .dropdown-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 1px solid var(--border-light);
    color: white;
}

[data-theme="dark"] .dropdown-user-avatar {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .dropdown-username {
    color: white;
}

.dropdown-avatar {
    position: relative;
}

.dropdown-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-username {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dropdown-section {
    padding: 8px 0;
}

/* Logout section styling - separate box feel */
.dropdown-section:last-child {
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
    padding-top: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}

[data-theme="dark"] .dropdown-section:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.dropdown-section-label {
    padding: 8px 16px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-item {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
}

.dropdown-icon {
    width: 16px;
    font-size: 0.875rem;
    opacity: 0.7;
    margin-left: 8px; /* Small padding from the left side */
    margin-right: auto; /* Push text to the right */
}

[data-theme="dark"] .user-dropdown {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-section-label {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .dropdown-item {
    color: #e5e7eb;
    background: transparent;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #374151;
}

.logout-item {
    color: var(--accent-danger);
}

/* Theme toggle item in dropdown */
.theme-toggle-item {
    justify-content: space-between !important;
    cursor: default !important;
}

.theme-toggle-item:hover {
    background: transparent !important;
}

/* Toggle Switch Styling */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-left: auto;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .theme-slider {
    background-color: var(--accent-primary);
}

input:checked + .theme-slider:before {
    transform: translateX(20px);
}

/* Dark theme toggle styling */
[data-theme="dark"] .theme-slider {
    background-color: #4a5568;
}

[data-theme="dark"] input:checked + .theme-slider {
    background-color: var(--accent-primary);
}

/* Override nav-container to use flexbox like category nav */
.nav-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0.5rem !important;
    min-height: 70px !important;
}

/* Nav brand - left side */
.nav-brand {
    margin-right: auto;
    margin-left: 0.5rem;
}

/* Updated nav-center - center */
.nav-center {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 1rem; /* Add gap between price pills */
}

/* Updated nav-controls - right side with minimal right margin */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 0.5rem;
}

/* Updated price display layout */
.price-row-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    align-items: flex-start;
}

.price-sparkline {
    border-radius: 3px;
    background: transparent;
}

/* Responsive Design for Price Display */
@media (max-width: 768px) {
    .hive-price-display {
        min-width: 120px;
        padding: 0.375rem 0.5rem;
    }
    
    .price-symbol {
        font-size: 0.625rem;
    }
    
    .price-value {
        font-size: 0.8125rem;
    }
    
    .price-change {
        font-size: 0.6875rem;
    }
    
    .price-sparkline {
        width: 40px;
        height: 16px;
    }
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}