/* Network Status Page Styles */

.network-status-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.page-intro {
    text-align: center;
    font-size: 1.05rem;
    color: #222;
    margin: 0 auto 40px;
    max-width: 800px;
    line-height: 1.6;
}

.page-intro a {
    color: #3a94ab;
    text-decoration: none;
}

.page-intro a:hover {
    text-decoration: underline;
}

/* Page Navigation */
.page-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 auto 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    max-width: 800px;
}

.nav-link {
    color: #3a94ab;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background-color: #3a94ab;
    color: #fff;
    text-decoration: none;
}

/* Status Section */
.status-section {
    margin-bottom: 50px;
    background: #ffffff;
    padding: 30px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-align: center;
}

/* Loading and Error Messages */
.loading-message {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #7f8c8d;
}

.error-message {
    text-align: center;
    padding: 20px;
    background-color: #fee;
    color: #c0392b;
    border-radius: 5px;
    border: 1px solid #e74c3c;
}

/* Status Tables - Match site style */
.network-status-page .status-table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 1px solid #e1e1e1;
    margin-top: 20px;
}

.network-status-page .status-table thead {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.network-status-page .status-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #000;
    border: none;
    border-bottom: 2px solid #e1e1e1;
    font-size: 0.9em;
}

.network-status-page .status-table td {
    padding: 15px;
    border: 1px solid #e1e1e1;
    font-size: 0.9em;
    text-align: left;
    color: #222;
}

.network-status-page .status-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Network Status Styles */
.network-status-page .network-name {
    font-weight: 400;
    color: #3a94ab !important;
    font-size: 0.9em;
}

.network-status-page .status-operational,
.network-status-page .status-outage {
    text-align: center;
}

.network-status-page .status-operational .status-text {
    color: #27ae60;
    font-weight: 500;
}

.network-status-page .status-outage .status-text {
    color: #e74c3c;
    font-weight: 500;
}

.network-status-page .status-indicator {
    margin: 0 auto 5px;
}

/* Green checkmark SVG matching site style */
.network-status-page .checkmark {
    stroke-width: 2px;
    stroke: green;
    stroke-miterlimit: 10;
    stroke-dashoffset: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    display: block;
}

/* Red crossmark SVG matching site style */
.network-status-page .crossmark {
    stroke-width: 2px;
    stroke: red;
    stroke-miterlimit: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    display: block;
}

.network-status-page .status-text {
    text-align: center;
    font-size: 0.9em;
}

.network-status-page .status-details {
    color: #7f8c8d;
}

/* Center align status columns */
.network-status-page .status-table td:nth-child(2),
.network-status-page .status-table th:nth-child(2) {
    text-align: center;
}

/* No Historical Message */
#no-historical-message {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Subscription Section - Match table aesthetic */
.subscription-section {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    padding: 30px;
    margin-bottom: 50px;
}

.subscription-section .section-title {
    color: #34495e;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Methodology Section */
.methodology-section {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    padding: 30px;
    margin-bottom: 50px;
}

.methodology-section .section-title {
    color: #34495e;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.methodology-content {
    color: #222;
    font-size: 1rem;
    line-height: 1.6;
}

.methodology-content p {
    margin-bottom: 15px;
}

.methodology-chart {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.severity-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.severity-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #3a94ab;
    border-radius: 4px;
}

.severity-list li strong {
    color: #2c3e50;
    font-weight: 600;
}

.subscription-description {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: #222;
    text-align: center;
}

/* Subscription Form */
.form-group {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.email-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    background-color: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    outline: none;
    font-family: Raleway, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.email-input:focus {
    border-color: #48a8c1;
    outline: 0;
}

.subscribe-button {
    padding: 12px 40px;
    font-size: 1.2em;
    font-weight: 400;
    background-color: #48a8c1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-family: Raleway, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.subscribe-button:hover:not(:disabled) {
    background-color: #3a94ab;
    text-decoration: none;
}

.subscribe-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Subscription Messages */
.subscription-message {
    text-align: center;
    padding: 15px;
    border-radius: 4px;
    font-weight: 400;
    margin-top: 15px;
    font-size: 1.2em;
}

.subscription-message.success {
    color: #27ae60;
}

.subscription-message.error {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .network-status-page {
        padding: 15px;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .page-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .page-navigation {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .nav-link {
        text-align: center;
        width: 100%;
        padding: 12px 16px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .status-section {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    .status-table {
        font-size: 0.9rem;
    }

    .status-table th,
    .status-table td {
        padding: 12px 8px;
        font-size: 0.8em;
    }

    .form-group {
        flex-direction: column;
        gap: 15px;
    }

    .subscribe-button {
        width: 100%;
        padding: 15px;
    }

    /* Make table scrollable on very small screens */
    @media (max-width: 480px) {
        .status-table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }
    }
}

/* Print Styles */
@media print {
    .subscription-section {
        display: none;
    }

    .status-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .page-title {
        color: #000;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .status-table td {
        border: 2px solid #000;
    }

    .subscription-section {
        border: 2px solid #000;
    }
}

/* Focus Styles for Accessibility */
.email-input:focus,
.subscribe-button:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.subscription-section .email-input:focus {
    outline-color: white;
}


