/* Satellite Orbit Visualization Styles */
.satellite-orbit-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin: 20px 0;
}

.orbit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.orbit-header h3 {
    color: #ffd700;
    margin: 0;
    font-size: 1.4em;
}

.satellite-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.satellite-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
}

.time-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-control-btn {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.5);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.time-control-btn:hover {
    background: rgba(52, 152, 219, 0.4);
}

.time-control-btn.active {
    background: rgba(52, 152, 219, 0.6);
}

.visualization-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.orbit-visualization {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.earth-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4CAF50, #2E7D32, #1B5E20);
    box-shadow:
        inset -20px -20px 50px rgba(0,0,0,0.5),
        0 0 50px rgba(76, 175, 80, 0.3);
}

.earth-container::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 70%;
    background: rgba(33, 150, 243, 0.3);
    border-radius: 50% 20% 40% 30%;
    transform: rotate(-20deg);
}

.earth-container::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 60%;
    width: 30%;
    height: 40%;
    background: rgba(139, 195, 74, 0.4);
    border-radius: 60% 40% 20% 80%;
    transform: rotate(45deg);
}

.orbit-path {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-path.polar {
    border-color: rgba(255, 193, 7, 0.5);
}

.orbit-path.sun-synchronous {
    border-color: rgba(156, 39, 176, 0.5);
}

.orbit-path.geostationary {
    border-color: rgba(244, 67, 54, 0.5);
}

.satellite-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.satellite-marker::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.satellite-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.satellite-info h4 {
    color: #ffd700;
    margin: 0 0 15px 0;
}

.info-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
}

.info-section h5 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.9em;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.info-label {
    color: #ccc;
}

.info-value {
    color: white;
    font-weight: bold;
}

.pass-predictions {
    margin: 20px 0;
}

.pass-predictions h5 {
    color: #ffd700;
    margin: 0 0 15px 0;
}

.pass-list {
    max-height: 200px;
    overflow-y: auto;
}

.pass-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 10px;
    margin: 8px 0;
    border-left: 3px solid #4CAF50;
}

.pass-time {
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.pass-details {
    font-size: 0.8em;
    color: #ccc;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.orbit-types {
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.orbit-types h4 {
    color: #ffd700;
    margin: 0 0 20px 0;
}

.orbit-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.orbit-type-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border-left: 4px solid;
}

.orbit-type-card.polar {
    border-left-color: #FFC107;
}

.orbit-type-card.sun-synchronous {
    border-left-color: #9C27B0;
}

.orbit-type-card.geostationary {
    border-left-color: #F44336;
}

.orbit-type-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.orbit-type-card.active {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: #ffd700;
}

.orbit-type-card h5 {
    color: white;
    margin: 0 0 10px 0;
}

.orbit-type-card p {
    color: #ccc;
    margin: 0;
    font-size: 0.8em;
    line-height: 1.4;
}

.orbit-characteristics {
    margin-top: 10px;
    font-size: 0.7em;
}

.characteristic-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    margin: 2px;
    color: #ffd700;
}

.educational-content {
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.educational-content h4 {
    color: #ffd700;
    margin: 0 0 20px 0;
}

.learning-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.learning-module {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    border-top: 3px solid #4CAF50;
}

.learning-module h5 {
    color: white;
    margin: 0 0 10px 0;
}

.learning-module p {
    color: #ccc;
    margin: 0 0 15px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.module-progress {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    background: #4CAF50;
    height: 100%;
    transition: width 0.3s ease;
}

.start-module-btn {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background 0.3s ease;
}

.start-module-btn:hover {
    background: rgba(76, 175, 80, 0.4);
}

/* Animation for satellite movement */
.satellite-moving {
    animation: orbit-movement 10s linear infinite;
}

@keyframes orbit-movement {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(160px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(160px) rotate(-360deg);
    }
}

/* Satellite Pass Notification Styles */
.satellite-pass-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 0;
    max-width: 350px;
    z-index: 10000;
    animation: slideInFromRight 0.5s ease-out;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-header {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #000;
    padding: 12px 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.alert-close {
    background: none;
    border: none;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.satellite-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px currentColor;
}

.alert-content {
    padding: 15px;
    color: white;
}

.alert-content p {
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.alert-content p:last-of-type {
    margin-bottom: 15px;
}

.quality-excellent {
    color: #4CAF50;
    font-weight: bold;
}

.quality-very-good {
    color: #8BC34A;
    font-weight: bold;
}

.quality-good {
    color: #FFEB3B;
    font-weight: bold;
}

.quality-fair {
    color: #FF9800;
    font-weight: bold;
}

.quality-poor {
    color: #F44336;
    font-weight: bold;
}

.track-pass-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.track-pass-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Enhanced Satellite Status Display */
.satellite-item {
    position: relative;
}

.satellite-item.has-upcoming-pass::before {
    content: '🛰️';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    animation: pulse 2s infinite;
}

.satellite-next-pass {
    font-size: 0.8em;
    color: #4CAF50;
    margin-top: 5px;
    padding: 3px 6px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 3px;
    border-left: 2px solid #4CAF50;
}

.satellite-status-operational {
    color: #4CAF50;
}

.satellite-status-degraded {
    color: #FF9800;
}

.satellite-status-offline {
    color: #F44336;
}

/* Real-time Data Indicators */
.real-time-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    z-index: 10;
}

.real-time-indicator.updating {
    background: rgba(255, 152, 0, 0.9);
    animation: pulse 1s infinite;
}

.real-time-indicator.offline {
    background: rgba(244, 67, 54, 0.9);
}

/* Pass Quality Visualization */
.pass-quality-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.pass-quality-excellent .pass-quality-indicator {
    background: #4CAF50;
    box-shadow: 0 0 6px #4CAF50;
}

.pass-quality-very-good .pass-quality-indicator {
    background: #8BC34A;
    box-shadow: 0 0 6px #8BC34A;
}

.pass-quality-good .pass-quality-indicator {
    background: #FFEB3B;
    box-shadow: 0 0 6px #FFEB3B;
}

.pass-quality-fair .pass-quality-indicator {
    background: #FF9800;
    box-shadow: 0 0 6px #FF9800;
}

.pass-quality-poor .pass-quality-indicator {
    background: #F44336;
    box-shadow: 0 0 6px #F44336;
}

/* Enhanced Pass List Styling */
.pass-item.high-quality {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.08);
}

.pass-item.medium-quality {
    border-left-color: #FFEB3B;
    background: rgba(255, 235, 59, 0.08);
}

.pass-item.low-quality {
    border-left-color: #FF9800;
    background: rgba(255, 152, 0, 0.08);
}

.pass-elevation-high {
    color: #4CAF50;
    font-weight: bold;
}

.pass-elevation-medium {
    color: #FFEB3B;
    font-weight: bold;
}

.pass-elevation-low {
    color: #FF9800;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .visualization-container {
        grid-template-columns: 1fr;
    }

    .satellite-controls {
        flex-direction: column;
        gap: 10px;
    }

    .time-controls {
        flex-wrap: wrap;
    }

    .orbit-type-grid {
        grid-template-columns: 1fr;
    }

    .earth-container {
        width: 250px;
        height: 250px;
    }

    .satellite-pass-alert {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .alert-content {
        padding: 12px;
    }

    .track-pass-btn {
        width: 100%;
        padding: 10px;
    }
}