/* ========== PAGE HEADER ========== */
.page-header {
    padding: 1.5rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========== METRIC CARDS ========== */
.metric-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.08);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.metric-card-primary .metric-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.metric-card-success .metric-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.metric-card-info .metric-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.metric-card-warning .metric-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.metric-content {
    position: relative;
    z-index: 2;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-total {
    font-size: 1.5rem;
    color: #9ca3af;
    font-weight: 600;
}

.metric-value-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
}

.metric-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
}

.metric-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.metric-link:hover {
    color: #2563eb;
}

.metric-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.04;
    pointer-events: none;
}

.status-pill {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    margin-right: 0.5rem;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #e5e7eb;
    color: #374151;
}

/* ========== DASHBOARD CARDS ========== */
.dashboard-card {
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.dashboard-card-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
}

.dashboard-card-body {
    padding: 1.75rem;
}

/* ========== CHARTS ========== */
.chart-container {
    position: relative;
}

.chart-container-donut {
    position: relative;
    height: 260px;
    margin: 1.5rem 0;
}

.donut-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.donut-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.donut-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding: 1rem 0 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.legend-value {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 600;
}

/* ========== INFO LISTS ========== */
.info-list {
    max-height: 420px;
    overflow-y: auto;
}

.info-list::-webkit-scrollbar {
    width: 6px;
}

.info-list::-webkit-scrollbar-track {
    background: #f9fafb;
}

.info-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.info-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.info-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.info-list-item:last-child {
    border-bottom: none;
}

.info-list-item:hover {
    background: #f9fafb;
}

.info-list-item.is-today {
    background: linear-gradient(90deg, #fef3c7 0%, #fef9f3 100%);
    border-left: 3px solid #f59e0b;
}

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

.info-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.info-icon-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    color: #0284c7;
}

.info-icon-success {
    background: linear-gradient(135deg, #d1fae5 0%, #dcfce7 100%);
    color: #059669;
}

.info-details {
    flex: 1;
    min-width: 0;
}

.info-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    text-transform: capitalize;
}

.info-meta {
    font-size: 0.8125rem;
    color: #6b7280;
    display: flex;
    align-items: center;
}

.info-badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

.badge-today {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.info-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    transition: all 0.2s;
    text-decoration: none;
}

.info-action:hover {
    background: #e5e7eb;
    color: #374151;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
}

.empty-state p {
    font-size: 0.9375rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .page-title {
        font-size: 1.75rem;
    }

    .metric-card {
        padding: 1.5rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .dashboard-card-header {
        padding: 1.25rem 1.5rem;
    }

    .dashboard-card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 1.5rem;
    }

    .metric-card {
        padding: 1.25rem;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .chart-container-donut {
        height: 220px;
    }

    .donut-value {
        font-size: 2rem;
    }

    .info-list {
        max-height: 350px;
    }
}
