/* STSGYM Satellite - Custom Styles */

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-bg: #2c3e50;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Map container */
#map {
    border-radius: 0;
}

/* Stats panel */
.stats-panel {
    font-size: 0.9rem;
}

.stats-panel h6 {
    font-weight: bold;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

/* Legend */
.legend {
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--dark-bg);
    color: white;
}

/* Tables */
.table th {
    background-color: var(--dark-bg);
    color: white;
    font-weight: 500;
}

.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Aircraft marker animation */
.aircraft-marker {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* Satellite marker */
.satellite-marker {
    animation: orbit 20s linear infinite;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-panel {
        position: relative;
        top: 0;
        right: 0;
        margin: 10px;
        width: 100%;
    }
    
    .legend {
        position: relative;
        bottom: 0;
        left: 0;
        margin: 10px;
        width: 100%;
    }
}

/* Login form */
.card {
    max-width: 100%;
}

/* Admin dashboard */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-danger {
    border-radius: 10px;
}

/* Pass timeline */
.pass-timeline {
    border-left: 3px solid var(--primary-color);
    margin-left: 20px;
    padding-left: 20px;
}

.pass-item {
    position: relative;
    margin-bottom: 20px;
}

.pass-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .card {
        background-color: #2d2d2d;
    }
    
    .stats-panel,
    .legend {
        background: rgba(45, 45, 45, 0.95) !important;
    }
}