/* Government Website Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */

/* Seal Image Styling */
.seal-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #003366;
}
.gov-header {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agency-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agency-seal {
    width: 60px;
    height: 60px;
    background: #fff;
    color: #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.agency-text h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.agency-text p {
    font-size: 1rem;
    opacity: 0.9;
}

.classification {
    text-align: right;
}

.classification-level {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.status-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Status Section */
.status-section h2,
.operations-section h2,
.activity-section h2 {
    color: #003366;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #004080;
}

/* Warning Banner */
.warning-banner {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(220, 53, 69, 0.6); }
}

.warning-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.warning-icon {
    font-size: 1.5rem;
    filter: brightness(0) invert(1);
}

.warning-banner .warning-text {
    flex: 1;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    background: none;
    border: none;
    padding: 0;
    color: white;
}

.review-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.review-btn:hover {
    background: white;
    color: #dc3545;
    transform: translateY(-1px);
}

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

.stat-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #003366;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    color: #dc3545;
    text-align: center;
    padding: 1rem 0;
}

.last-launch-card .launch-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: bold;
    color: #495057;
}

.detail-row .value {
    color: #212529;
    font-weight: 600;
}

/* Operations Section */
.operations-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.launch-panel {
    text-align: center;
    padding: 2rem 0;
}

.launch-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.launch-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

.launch-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.launch-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.warning-text {
    margin-top: 1rem;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* Activity Section */
.activity-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.activity-log {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
}

.launch-entry {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
    margin-bottom: 1px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.launch-entry:last-child {
    border-bottom: none;
}

.launch-entry strong {
    color: #dc3545;
    display: block;
    margin-bottom: 0.25rem;
}

/* Footer */

/* Map Image Styling */
.map-container {
    text-align: center;
    margin: 2rem 0;
}

.map-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #003366;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.gov-footer {
    background: #343a40;
    color: white;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.timestamp {
    font-family: 'Courier New', monospace;
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .agency-text h1 {
        font-size: 1.4rem;
    }
    
    .launch-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Protocol Override Popup */
.protocol-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.protocol-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.protocol-popup {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.5);
    animation: slideIn 0.3s ease;
}

.protocol-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 6px 6px 0 0;
}

.protocol-header h3 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.protocol-content {
    padding: 2rem;
    color: white;
    text-align: center;
}

.protocol-id {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: #dc3545;
    font-weight: bold;
    margin: 0 0 1rem 0;
}

.protocol-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: #f8f9fa;
}

.protocol-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #333;
}

.protocol-close-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.protocol-close-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}
