/* LawPractica Status Page Styles */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fb;
    padding: 0;
    margin: 0;
}

.main-container {
    min-height: 100vh;
    padding: 40px 20px;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container img {
    max-width: 300px;
    height: auto;
}

.status-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.status-heading {
    color: #28a745;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 600;
}

.status-icon {
    max-width: 80px;
    height: auto;
}

.status-subtext {
    color: #6c757d;
    margin-top: 15px;
    font-size: 1.1rem;
}

.services-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.region-section {
    margin-bottom: 40px;
}

.region-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.region-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.canada-icon {
    width: 28px;
    height: 21px;
}

.service-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.service-table thead th {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 15px 20px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.service-table thead th:first-child {
    border-top-left-radius: 6px;
}

.service-table thead th:last-child {
    border-top-right-radius: 6px;
}

.service-table thead th.text-center {
    text-align: center;
}

.service-table tbody tr {
    border-bottom: 1px solid #f8f9fa;
}

.service-table tbody tr:last-child {
    border-bottom: none;
}

.service-table tbody td {
    padding: 14px 20px;
    color: #495057;
    font-size: 0.95rem;
    vertical-align: middle;
}

.service-table tbody td.status-cell {
    text-align: center;
    width: 150px;
}

.service-name a {
    color: #3b82f6;
    text-decoration: none;
}

.service-name a:hover {
    text-decoration: underline;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.section-row td {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px !important;
}

.status-up {
    background-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.status-down {
    background-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.status-partial {
    background-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.section-header {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 15px 0;
    padding-top: 10px;
}

.responsive-table-wrapper {
    overflow-x: auto;
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.chart-wrapper {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
}

.chart-container {
    height: 300px;
    position: relative;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 10px;
}

.status-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-flash {
    animation: flash 1s ease-in-out infinite;
}

@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.3;
    }
}

.last-updated {
    text-align: right;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.waiting-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.1rem;
}

.accordion {
    margin-top: 30px;
}

#accordionMonitoring {
    margin-bottom: 20px;
}

.accordion-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    color: #2c3e50;
    background-color: white;
    border-radius: 8px !important;
    padding: 18px 24px;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #3b82f6;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #e9ecef;
}

.accordion-body {
    padding: 24px;
    line-height: 1.8;
}

.accordion-body p {
    margin-bottom: 15px;
}

.accordion-body strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.text-danger strong {
    color: #dc3545;
}

.text-warning strong {
    color: #fd7e14;
}

.text-success strong {
    color: #28a745;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-card {
        padding: 30px 20px;
    }

    .services-card {
        padding: 20px;
    }

    .status-heading {
        font-size: 1.5rem;
    }

    .status-icon {
        max-width: 60px;
    }

    .service-table thead th,
    .service-table tbody td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .service-table tbody td.status-cell {
        width: 80px;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 20px 10px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .logo-container img {
        max-width: 200px;
    }

    .status-heading {
        flex-direction: column;
        gap: 10px;
    }

    .service-table thead th,
    .service-table tbody td {
        padding: 8px 8px;
        font-size: 0.8rem;
    }

    .service-table thead th.text-center {
        font-size: 0.75rem;
    }

    .service-table tbody td.status-cell {
        width: 60px;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 15px 18px;
    }

    .accordion-body {
        padding: 18px;
        font-size: 0.9rem;
    }
}
