* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    min-height: 100vh;
    padding: 1rem;
}

.login-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 2rem;
    max-width: 420px;
    width: 90%;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-icon {
    color: #2c7da0;
}

.login-button {
    background: #2c7da0;
    border-color: #2c7da0;
    color: #ffffff;
    --bs-btn-bg: #2c7da0;
    --bs-btn-border-color: #2c7da0;
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #246782;
    --bs-btn-hover-border-color: #246782;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #1e5a72;
    --bs-btn-active-border-color: #1e5a72;
    --bs-btn-active-color: #ffffff;
    --bs-btn-focus-shadow-rgb: 44, 125, 160;
}

.login-button:hover,
.login-button:focus,
.login-button:active,
.login-button:focus-visible {
    background: #246782;
    border-color: #246782;
    color: #ffffff;
}

.login-button:active {
    background: #1e5a72;
    border-color: #1e5a72;
    color: #ffffff;
}

.dashboard-title {
    color: #1e3c4c;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.dashboard-container {
    display: block;
}

.summary-pill {
    background: white;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: #27485a;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
}

.monitor-section {
    background: white;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.section-header {
    background: linear-gradient(135deg, #1e3c4c 0%, #2c5a6e 100%);
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
}

.section-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h1 i {
    font-size: 1.6rem;
}

.section-header .section-stats {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

.subsection {
    border-bottom: 1px solid #eef2f6;
}

.subsection:last-child {
    border-bottom: none;
}

.subsection-header {
    background: #f8fafc;
    padding: 0.75rem 1.5rem;
    border-left: 4px solid #2c7da0;
    cursor: pointer;
}

.subsection-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #1e3b4a;
}

.subsection-header h2 i {
    color: #2c7da0;
    margin-right: 0.5rem;
}

.widgets-grid {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.widget-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2edf2;
    transition: all 0.2s;
    overflow: hidden;
    height: 100%;
}

.widget-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.widget-card.missing-widget {
    border-left: 4px solid #dc2626;
    background: #fffaf9;
}

.widget-card.active-widget {
    border-left: 4px solid #10b981;
}

.widget-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.widget-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1f3b4c;
}

.widget-description {
    color: #607d8b;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-description-empty {
    visibility: hidden;
}

.widget-id {
    font-size: 0.7rem;
    color: #6c8a9c;
    font-family: monospace;
}

.subdomain-badge {
    font-size: 0.65rem;
    background: #eef2ff;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    display: inline-block;
    margin-top: 0.25rem;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.badge-missing {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-active {
    background: #dcfce7;
    color: #15803d;
}

.timestamp-value {
    font-size: 0.75rem;
    font-weight: 500;
    color: #2c5a6e;
}

.missing-timestamp {
    color: #dc2626;
    font-size: 0.75rem;
    font-style: italic;
}

.filter-bar {
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.subdomain-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.status-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: #e2e8f0;
}

.filter-chip.active {
    background: #2c7da0;
    color: white;
    border-color: #2c7da0;
}

.filter-chip i {
    margin-right: 0.4rem;
}

.clear-filter {
    color: #6c8a9c;
    font-size: 0.8rem;
    cursor: pointer;
}

.clear-filter:hover {
    color: #dc2626;
    text-decoration: underline;
}

.loading-state,
.no-results,
.error-state {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 1rem;
    color: #486574;
    padding: 2rem;
    text-align: center;
}

.error-state {
    color: #b91c1c;
}

.widget-meta {
    color: #6c8a9c;
    font-size: 0.72rem;
}

.page-link-button {
    border-radius: 1rem;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
}

.widget-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .filter-bar {
        padding: 0.75rem 1rem;
    }

    .section-header {
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .section-header h1 {
        font-size: 1.2rem;
    }

    .widgets-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}
