/* Modern Space-Themed Orbital Zoning Framework Interface */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.6;
    color: #f8fafc;
    background: #0f172a;
    background-image: 
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%),
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23334155" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    pointer-events: none;
    z-index: -1;
}

header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
}

header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #10b981);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
    letter-spacing: -0.02em;
    position: relative;
}



header p {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 400;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.stats-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(51, 65, 85, 0.4) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}



.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
}

.stat-card h3 {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(51, 65, 85, 0.4) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 3rem;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}



section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.6), transparent);
}

section h2 {
    margin-bottom: 2rem;
    color: #f8fafc;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
    position: relative;
}

section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.5), transparent);
    margin-left: 1rem;
}

section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    border-radius: 2px;
}

.satellite-item {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 3px solid #0ea5e9;
    transition: all 0.2s ease;
    position: relative;
}

.satellite-item:hover {
    background: rgba(51, 65, 85, 0.5);
    border-left-color: #10b981;
    transform: translateX(4px);
}

.satellite-item strong {
    color: #0ea5e9;
    font-weight: 600;
}

.satellite-item small {
    color: #94a3b8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: rgba(51, 65, 85, 0.7);
}

.form-group select option {
    background: #1e293b;
    color: #e2e8f0;
}

button {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9;
    padding: 0.875rem 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24);
    text-transform: none;
    transform: translateY(0);
}

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

button:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.16),
        0 3px 6px rgba(0, 0, 0, 0.23);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.tract-result {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 3px solid #22c55e;
    transition: all 0.2s ease;
}

.tract-result:hover {
    background: rgba(34, 197, 94, 0.15);
    transform: translateX(4px);
}

.tract-result strong {
    color: #22c55e;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 4rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    border-top-color: #06b6d4;
    animation: spin 1s ease-in-out infinite;
}

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

/* Status indicators */
.status-indicator {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.status-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Additional modern elements */
.stat-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 400;
}

.section-description {
    margin-bottom: 2rem;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #64748b;
}

.satellite-grid {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modern-form {
    background: rgba(51, 65, 85, 0.2);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.search-button, .register-button {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    box-shadow: 
        0 4px 15px rgba(14, 165, 233, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.register-button {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.select-tract-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 3px 10px rgba(245, 158, 11, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.select-tract-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(245, 158, 11, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.registration-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
}

.registration-success h3 {
    color: #10b981;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.registration-details {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

.status-approved {
    color: #10b981 !important;
    font-weight: 600;
}

.governance-note {
    background: rgba(6, 182, 212, 0.1);
    border-left: 3px solid #06b6d4;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #94a3b8;
    font-style: italic;
    margin-top: 1rem;
}

.registration-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    text-align: center;
}

.registration-error h3 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.8rem;
    font-style: italic;
}

.results-container {
    margin-top: 2rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-stats {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #475569;
}

/* Enhanced satellite and results styling */
.satellite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.satellite-status {
    color: #22c55e;
    font-size: 0.8rem;
    font-weight: 500;
}

.satellite-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .satellite-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .detail-item {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.25rem !important;
        text-align: left !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.detail-item {
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(51, 65, 85, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.results-header {
    margin-bottom: 2rem;
}

.results-header h3 {
    color: #22c55e;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.results-description {
    color: #94a3b8;
    font-size: 0.95rem;
}

.results-grid {
    display: grid;
    gap: 1rem;
}

.tract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.availability-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tract-details {
    display: grid;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.detail-value {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
}

.no-results, .error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
}

.no-results h3, .error-message h3 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.no-results p, .error-message p {
    color: #94a3b8;
}

/* Button loading state */
.search-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.search-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modern-form {
        padding: 1.5rem;
    }
    
    .search-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* New UI Enhancement Styles */
.data-freshness {
    margin-top: 1rem;
    text-align: right;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

.search-controls {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: rgba(51, 65, 85, 0.7);
}

.search-input::placeholder {
    color: #64748b;
}

.satellite-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.stat-item {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.stat-item span {
    color: #0ea5e9;
    font-weight: 600;
    margin-left: 0.25rem;
}

.risk-indicator {
    position: relative;
}

.risk-indicator .stat-number {
    font-size: 2.2rem;
}

.risk-indicator .stat-description {
    font-weight: 500;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.7);
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
    header {
        padding: 1.5rem 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    header p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .status-indicator {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .status-indicator span:last-child {
        margin-left: 0 !important;
    }
    
    .header-nav-btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.8rem !important;
        margin: 0 0.25rem !important;
    }
    
    main {
        padding: 1.5rem 0.75rem;
    }
    
    section {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .stats-dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .satellite-item {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .satellite-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .satellite-status {
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px; /* Touch target size */
    }
    
    .find-tract-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .stats-dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    header {
        padding: 2rem 1.5rem;
    }
    
    header h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .status-indicator {
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .header-nav-btn {
        padding: 0.85rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    section {
        padding: 2rem 1.5rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modern-form {
        padding: 1.5rem;
    }
    
    .search-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .satellite-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Mobile header spacing adjustments */
    header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .search-controls {
        gap: 1.5rem;
    }
    
    .data-freshness {
        text-align: center;
    }
}

/* Analytics Dashboard Styles */
.analytics-overview {
    margin-bottom: 3rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.analysis-panel {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.analysis-panel h3 {
    margin-bottom: 1.5rem;
    color: #0ea5e9;
    font-size: 1.2rem;
}

.zone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border-left: 3px solid #0ea5e9;
    transition: all 0.2s ease;
}

.zone-item:hover {
    background: rgba(30, 41, 59, 0.7);
    transform: translateX(4px);
}

.busiest-zone {
    border-left-color: #ef4444;
}

.empty-zone {
    border-left-color: #10b981;
}

.zone-rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ef4444;
    margin-right: 1rem;
}

.zone-info {
    flex: 1;
}

.zone-name {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.zone-details {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.zone-count {
    font-weight: 600;
    color: #0ea5e9;
}

.zone-status {
    font-weight: 500;
    color: #10b981;
}

.constellation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.constellation-card {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.constellation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.constellation-header h4 {
    color: #0ea5e9;
    margin: 0;
}

.assignment-rate {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.constellation-stats {
    margin-bottom: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-row span:first-child {
    color: #94a3b8;
}

.stat-row span:last-child {
    color: #e2e8f0;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    transition: width 0.3s ease;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.risk-zone {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #94a3b8;
}

.risk-zone.high {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.risk-zone.medium {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.risk-zone.low {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.risk-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.risk-level.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.risk-level.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.risk-level.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.satellite-count {
    font-weight: 600;
    color: #e2e8f0;
}

.assignment-panel {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.assignment-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.assignment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(16, 185, 129, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.assignment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.assignment-results {
    margin-top: 2rem;
}

.assignment-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.assignment-success h4 {
    color: #10b981;
    margin-bottom: 1rem;
}

.assignment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.assignment-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.assignment-stats .stat-item span:first-child {
    color: #94a3b8;
    font-size: 0.9rem;
}

.assignment-stats .stat-item span:last-child {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1.1rem;
}

.assignment-note {
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
}

.assignment-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.assignment-error h4 {
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.no-data {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 2rem;
}

@media (max-width: 480px) {
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .analysis-panel {
        padding: 1.5rem 1rem;
    }
    
    .constellation-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .constellation-card {
        padding: 1rem;
    }
    
    .risk-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .risk-zone {
        padding: 1rem;
    }
    
    .assignment-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .density-chart-container,
    .usage-chart-container {
        padding: 1rem;
    }
    
    .zone-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .zone-modal-content {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .constellation-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-grid {
        grid-template-columns: 1fr;
    }
    
    .assignment-stats {
        grid-template-columns: 1fr;
    }
}

/* Region Breakdown Styles */
.region-breakdown {
    margin-bottom: 3rem;
}

.leo-panel {
    border-left: 4px solid #0ea5e9;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(6, 182, 212, 0.05));
}

.meo-panel {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(217, 119, 6, 0.05));
}

.region-summary {
    margin-top: 1rem;
}

.region-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.region-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.stat-value {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
}

.region-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.region-tag.leo {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}

.region-tag.meo {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Density Metrics Styles */
.density-metrics {
    margin-bottom: 3rem;
}

.density-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #06b6d4;
}

.density-chart-container {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

/* Buffer Analysis Styles */
.buffer-analysis {
    margin-bottom: 3rem;
}

.buffer-panel {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.buffer-check-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 15px rgba(14, 165, 233, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.buffer-check-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(14, 165, 233, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.buffer-check-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.buffer-results {
    margin-top: 2rem;
}

.buffer-success {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.buffer-success h4 {
    color: #0ea5e9;
    margin-bottom: 1rem;
}

.buffer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.buffer-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 6px;
}

.buffer-summary {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.buffer-examples {
    margin-top: 1rem;
}

.buffer-examples h5 {
    color: #0ea5e9;
    margin-bottom: 0.5rem;
}

.buffer-example {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.buffer-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.buffer-error h4 {
    color: #ef4444;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .buffer-stats {
        grid-template-columns: 1fr;
    }
}

/* Zone Modal Styles */
.clickable-zone {
    cursor: pointer;
}

.clickable-zone:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    transform: translateX(6px) !important;
}

.zone-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.zone-modal {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
}

.zone-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.zone-modal-header h3 {
    margin: 0;
    color: #0ea5e9;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.close-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.zone-modal-content {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.satellites-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.satellite-item-modal {
    background: rgba(51, 65, 85, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid #0ea5e9;
}

.sat-name {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.norad-id {
    font-weight: 400;
    color: #06b6d4;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', monospace;
}

.sat-details {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.sat-details span {
    background: rgba(30, 41, 59, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Usage Analytics Styles */
.usage-analysis {
    margin-bottom: 3rem;
}

.usage-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.usage-chart-container {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.usage-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.usage-tab {
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.usage-tab:hover {
    background: rgba(51, 65, 85, 0.7);
    color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.usage-tab.active {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    border-color: #0ea5e9;
    box-shadow: 
        0 3px 8px rgba(14, 165, 233, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.usage-stats-grid {
    display: grid;
    gap: 1rem;
}

.usage-stat-card {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.usage-stat-card:hover {
    background: rgba(51, 65, 85, 0.5);
    transform: translateY(-2px);
}

.usage-type {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.usage-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0ea5e9;
    margin-bottom: 0.25rem;
}

.usage-rate {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 500;
}

@media (max-width: 768px) {
    .usage-tabs {
        justify-content: center;
    }
}
/* Find Similar Zone Button Styles */
.find-tract-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    width: 100%;
    box-shadow: 
        0 3px 10px rgba(245, 158, 11, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.find-tract-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(245, 158, 11, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.find-tract-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(245, 158, 11, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
/* Header Navigation Button Styles */
.header-nav-btn {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    margin: 0 0.5rem !important;
    text-transform: none !important;
    font-size: 0.875rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

.header-nav-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.16),
        0 3px 6px rgba(0, 0, 0, 0.23) !important;
}

.header-nav-btn:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}

.header-nav-btn.command-center {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(148, 163, 184, 0.4) !important;
}

.header-nav-btn.command-center:hover {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
    color: white !important;
    border-color: rgba(148, 163, 184, 0.6) !important;
}

.header-nav-btn.tactical-view {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(148, 163, 184, 0.4) !important;
}

.header-nav-btn.tactical-view:hover {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
    color: white !important;
    border-color: rgba(148, 163, 184, 0.6) !important;
}

/* Section Navigation Button Styles */
.section-nav-btn {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

.section-nav-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
}

.section-nav-btn.analytics {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

.section-nav-btn.analytics:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

.section-nav-btn.globe {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4) !important;
    color: white !important;
}

.section-nav-btn.globe:hover {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4) !important;
    color: white !important;
}

.section-nav-btn.uap {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
}

.section-nav-btn.uap:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
}
/* Navigation Button Overrides */
a.header-nav-btn {
    display: inline-block !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    margin: 0 0.5rem !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

a.header-nav-btn.command-center {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

a.header-nav-btn.tactical-view {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: white !important;
}

a.header-nav-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    text-decoration: none !important;
    color: white !important;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
}

a.section-nav-btn {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

a.section-nav-btn.analytics {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

a.section-nav-btn.globe {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4) !important;
    color: white !important;
}

a.section-nav-btn.uap {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
}

a.section-nav-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    text-decoration: none !important;
    color: white !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
}

/* Patent notice styling */
.patent-notice {
    font-size: 0.8rem;
    color: #06b6d4;
    margin-top: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}
/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #38bdf8;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.tooltiptext {
    visibility: hidden;
    width: 240px;
    background-color: #1e293b;
    color: #f1f5f9;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.tooltiptext::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #1e293b transparent;
}

/* Right-aligned tooltip for cards on the right */
.stat-card:nth-child(even) .tooltiptext {
    left: auto;
    right: 0;
    transform: none;
}

.stat-card:nth-child(even) .tooltiptext::before {
    left: auto;
    right: 20px;
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Allow container overflow for tooltips */
.stats-dashboard {
    overflow: visible;
}

.stat-card {
    overflow: visible;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
    .tooltiptext {
        width: calc(100vw - 40px);
        max-width: 300px;
        font-size: 0.75rem;
        padding: 8px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        position: absolute;
        z-index: 10000;
    }
    
    .stat-card:nth-child(even) .tooltiptext {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .stat-card:nth-child(even) .tooltiptext::before {
        left: 50%;
        right: auto;
        margin-left: -5px;
    }
    
    .tooltip {
        font-size: 0.8rem;
        position: relative;
        z-index: 10001;
    }
    
    /* Reduce stat card z-index on mobile */
    .stat-card {
        position: relative;
        z-index: 1;
    }
    
    /* Ensure main container allows overflow */
    main {
        overflow: visible;
    }
}