body { 
    font-family: 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1f2937; }
::-webkit-scrollbar-thumb { background-color: #4b5563; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: #6b7280; }

.orbit-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: 2px solid #4338ca;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.orbit-canvas {
    width: 100% !important;
    height: 100% !important;
}

.control-panel {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 20px;
}

.data-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.data-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}

.form-input {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    width: 100%;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #374151;
    color: white;
    border: 1px solid #4b5563;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #374151;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.orbit-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 250px;
    z-index: 100;
}

.time-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.time-slider {
    flex: 1;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
}

.sample-objects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.sample-object {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.sample-object:hover {
    border-color: #6366f1;
    background: #1f2937;
}

.neo-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #374151;
    border-radius: 8px;
    background: #111827;
}

.neo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #2d3748;
    cursor: pointer;
    transition: all 0.2s;
}

.neo-item:hover {
    background: #1f2937;
}

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

.neo-info {
    flex: 1;
}

.neo-name {
    font-weight: 600;
    color: #f9fafb;
    font-size: 14px;
}

.neo-details {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.neo-stats {
    text-align: right;
    font-size: 12px;
}

.neo-distance {
    color: #10b981;
    font-weight: 600;
}

.neo-date {
    color: #6b7280;
}

.neo-magnitude {
    color: #f59e0b;
}

.btn-sm {
    font-size: 12px;
    padding: 4px 8px;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border: 2px solid #374151;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.data-table {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #374151;
    border-radius: 8px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #374151;
    color: #f9fafb;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #2d3748;
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

.data-table tr:hover {
    background: #2d3748;
}

.chart-container {
    position: relative;
    height: 300px;
    background: #1f2937;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #374151;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-loading { background: #f59e0b; animation: pulse 2s infinite; }
.status-success { background: #10b981; }
.status-error { background: #ef4444; }

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

/* Enhanced Discovery Section Styles */
.interstellar-object {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(79, 70, 229, 0.1));
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.interstellar-object:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(79, 70, 229, 0.2));
    border-color: rgba(147, 51, 234, 0.5);
}

.discovery-timeline {
    position: relative;
}

.discovery-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, #10b981, #3b82f6, #f59e0b);
}

.discovery-item {
    position: relative;
    padding-left: 24px;
}

.discovery-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1f2937;
    z-index: 1;
}

/* Modal enhancements */
#discovery-modal {
    backdrop-filter: blur(4px);
}

#discovery-modal .bg-gray-900 {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
}

/* Notification animations */
.notification-enter {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.notification-show {
    transform: translateX(0);
}

.notification-exit {
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .data-card {
        padding: 12px;
    }
    
    .data-card .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .data-card .text-sm {
        font-size: 12px;
    }
}
