/* NASA Data Page Styles */

.data-main {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}

.page-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #00d4ff;
    text-shadow: 0 0 20px #00d4ff;
}

/* API Status */
.api-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffa502;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #2ed573;
}

.status-dot.error {
    background: #ff4757;
}

.status-text {
    font-weight: 600;
    color: #e0e6ed;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.refresh-icon {
    transition: transform 0.3s ease;
}

.refresh-btn.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(177, 156, 217, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(177, 156, 217, 0.3);
    border-color: #b19cd9;
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px #00d4ff);
}

.stat-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #b19cd9;
    margin: 0;
}

/* NEO Section */
.neo-section {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 2rem;
    text-align: center;
}

.neo-list {
    display: grid;
    gap: 1rem;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading p {
    color: #a0a6b8;
    font-size: 1.1rem;
}

/* NEO Cards */
.neo-card {
    background: rgba(22, 33, 62, 0.6);
    border: 1px solid rgba(177, 156, 217, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.neo-card:hover {
    border-color: #b19cd9;
    box-shadow: 0 4px 20px rgba(177, 156, 217, 0.3);
    transform: translateY(-2px);
}

.neo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.neo-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00d4ff;
    margin: 0;
    flex: 1;
}

.hazard-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hazard-badge.hazardous {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid #ff4757;
}

.hazard-badge.safe {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid #2ed573;
}

.neo-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.neo-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    color: #a0a6b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #e0e6ed;
}

.simulate-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.simulate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .api-status {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .neo-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .neo-details {
        grid-template-columns: 1fr;
    }
}/* Filter 
Section Styling */
.filter-section {
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.filter-section .section-title {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input,
.filter-select,
.sort-select {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-input:focus,
.filter-select:focus,
.sort-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--hover-overlay);
}

.filter-input::placeholder {
    color: var(--text-tertiary);
}

.clear-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

#resultsCount {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.sort-select {
    min-width: 150px;
}

/* Enhanced NEO Cards */
.neo-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.neo-card:hover {
    border-color: var(--border-accent) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium) !important;
}

.neo-card h3 {
    color: var(--accent-primary) !important;
}

.neo-card .neo-info p {
    color: var(--text-primary) !important;
}

.neo-card .neo-stats {
    background: var(--bg-tertiary) !important;
}

.neo-card .stat-item {
    color: var(--text-secondary) !important;
}

.neo-card .stat-value {
    color: var(--accent-primary) !important;
}

.hazardous-indicator {
    background: var(--error) !important;
    color: white !important;
}

.safe-indicator {
    background: var(--success) !important;
    color: white !important;
}

/* Loading States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-primary);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-tertiary);
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .results-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .sort-controls {
        justify-content: center;
    }
}

/* Theme-specific overrides */
[data-theme="light"] .filter-section {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .filter-input,
[data-theme="light"] .filter-select,
[data-theme="light"] .sort-select {
    background: rgba(248, 250, 252, 0.9);
    color: #0f172a;
}

[data-theme="light"] .results-info {
    background: rgba(248, 250, 252, 0.8);
}

[data-theme="dark"] .filter-section {
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .filter-input,
[data-theme="dark"] .filter-select,
[data-theme="dark"] .sort-select {
    background: rgba(22, 33, 62, 0.8);
    color: #ffffff;
}

[data-theme="dark"] .results-info {
    background: rgba(0, 0, 0, 0.2);
}/* St
atus Indicators */
.api-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.connecting {
    background: var(--warning);
}

.status-dot.connected {
    background: var(--success);
}

.status-dot.error {
    background: var(--error);
}

.status-text {
    color: var(--text-primary);
    font-weight: 600;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.refresh-icon {
    font-size: 1rem;
    animation: rotate 2s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.stat-content h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

/* NEO Section */
.neo-section {
    margin-top: 3rem;
}

.neo-section .section-title {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* NEO Card Styling */
.neo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.neo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.neo-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.neo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.neo-header h3 {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.neo-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.hazardous-indicator,
.safe-indicator,
.approach-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.hazardous-indicator {
    background: var(--error);
    color: white;
}

.safe-indicator {
    background: var(--success);
    color: white;
}

.approach-status {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.neo-info {
    margin-bottom: 1rem;
}

.neo-info p {
    color: var(--text-primary);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.neo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
}

.neo-stats .stat-item {
    text-align: center;
}

.neo-stats .stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.neo-stats .stat-value {
    display: block;
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Page Title */
.page-title {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Data Main Container */
.data-main {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-top: 100px;
    padding-bottom: 2rem;
}/* Enh
anced NEO Card Elements */
.lunar-distance {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-style: italic;
}

.sentry-indicator {
    background: var(--warning);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.neo-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}

.neo-link a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.neo-link a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Loading enhancements */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Status enhancements */
.status-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Enhanced statistics */
.stat-card .stat-icon {
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

/* Better responsive design */
@media (max-width: 480px) {
    .neo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .neo-status {
        align-items: flex-start;
    }
    
    .neo-header h3 {
        font-size: 1rem;
        margin-right: 0;
    }
    
    .neo-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .neo-stats .stat-item:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }
}