/**
 * Blagoweb CRM - Uptime Monitor Public Status Page
 */

.bw-status-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a2e;
    line-height: 1.5;
}

/* HEADER */
.bw-status-header {
    text-align: center;
    padding: 30px 20px 25px;
}

/* ADMIN PREVIEW BANNER */
.bw-status-admin-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    color: #78350f;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.bw-status-admin-banner a {
    color: #78350f;
    text-decoration: underline;
    font-weight: 600;
}

.bw-status-admin-banner code {
    background: rgba(255,255,255,.6);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.bw-status-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.bw-status-client-name {
    color: #6b7280;
    margin: 8px 0 0;
    font-size: 16px;
}

/* OVERALL STATUS BANNER */
.bw-status-overall {
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 25px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.bw-status-overall-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bw-status-overall-icon {
    font-size: 48px;
    line-height: 1;
}

.bw-status-overall-text {
    flex: 1;
}

.bw-status-overall-label {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.bw-status-overall-meta {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

/* SUMMARY CARDS */
.bw-status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.bw-status-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.bw-status-summary-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
}

.bw-status-summary-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    font-weight: 600;
}

/* SECTION */
.bw-status-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #1a1a2e;
}

/* SERVICES */
.bw-status-services {
    margin-bottom: 30px;
}

.bw-status-service {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.bw-status-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.bw-status-service-info {
    flex: 1;
    min-width: 0;
}

.bw-status-service-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.bw-status-service-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

.bw-status-service-status {
    text-align: right;
    flex-shrink: 0;
}

.bw-status-service-uptime {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

/* STATUS PILL */
.bw-status-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

/* DAILY BARS (90gg history) */
.bw-status-service-bars {
    display: flex;
    gap: 2px;
    height: 28px;
    align-items: stretch;
    margin-top: 8px;
}

.bw-status-bar {
    flex: 1;
    min-width: 2px;
    border-radius: 2px;
    cursor: help;
    transition: opacity 0.2s;
}

.bw-status-bar:hover {
    opacity: 0.7;
}

.bw-status-bar-up      { background: #16a34a; }
.bw-status-bar-partial { background: #f59e0b; }
.bw-status-bar-down    { background: #dc2626; }
.bw-status-bar-unknown { background: #d1d5db; }

.bw-status-service-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* EMPTY */
.bw-status-empty {
    text-align: center;
    color: #6b7280;
    padding: 40px;
    background: #f9fafb;
    border-radius: 8px;
}

/* FOOTER */
.bw-status-footer {
    text-align: center;
    padding: 30px 20px 20px;
    color: #9ca3af;
    font-size: 12px;
    border-top: 1px solid #e5e7eb;
    margin-top: 30px;
}

.bw-status-footer a {
    color: #6b7280;
    text-decoration: none;
}

.bw-status-footer a:hover {
    text-decoration: underline;
}

/* UNAUTHORIZED */
.bw-status-unauth {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bw-status-unauth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.bw-status-unauth-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.bw-status-unauth-card h2 {
    margin: 0 0 12px;
    color: #1a1a2e;
    font-size: 22px;
}

.bw-status-unauth-card p {
    color: #6b7280;
    margin: 8px 0;
}

.bw-status-button {
    display: inline-block;
    background: #0073aa;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
}

.bw-status-button:hover {
    background: #005c8a;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .bw-status-wrap {
        padding: 12px;
    }
    .bw-status-header h1 {
        font-size: 24px;
    }
    .bw-status-overall-icon {
        font-size: 36px;
    }
    .bw-status-overall-label {
        font-size: 18px;
    }
    .bw-status-service-status {
        text-align: left;
        width: 100%;
    }
    .bw-status-service-bars {
        height: 22px;
    }
    .bw-status-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    .bw-status-summary-value {
        font-size: 22px;
    }
}
