/* Dashboard Styles */
/* Tab styles moved to components.css */
/* Legacy stats-grid kept for backwards compatibility */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin: 0;
}

/* === NEW DASHBOARD STYLES === */

/* Header Section */
.dashboard-header-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #5a6fd8 50%, #4d5fc7 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.user-welcome-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255,255,255,0.15);
    padding: 1.25rem;
    border-radius: 12px;
    min-width: 280px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.9);
}

.user-details h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.user-details p {
    margin: 0 0 0.5rem 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

.user-role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.welcome-text {
    flex: 1;
    min-width: 280px;
}

.welcome-text h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.welcome-subtitle {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

.welcome-desc {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Info Cards Row */
.dashboard-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.info-card.info-blue {
    background: linear-gradient(135deg, #ede9f8 0%, #dfd6f3 100%);
    border-left: 4px solid #667eea;
}

.info-card.info-red {
    background: linear-gradient(135deg, #fef5f5 0%, #fde8e8 100%);
    border-left: 4px solid #e74c3c;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-blue .info-icon {
    background: #667eea;
    color: #fff;
}

.info-red .info-icon {
    background: #e74c3c;
    color: #fff;
}

.info-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.info-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Quick Stats */
.dashboard-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quick-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.quick-stat-icon.stat-blue {
    background: linear-gradient(135deg, #667eea, #5a6fd8);
}

.quick-stat-icon.stat-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.quick-stat-icon.stat-purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.quick-stat-icon.stat-orange {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.quick-stat-info {
    display: flex;
    flex-direction: column;
}

.quick-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
}

.quick-stat-label {
    font-size: 0.85rem;
    color: #888;
}

/* Section Title */
.dashboard-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-section-title i {
    color: #667eea;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.action-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f0f4f8, #e4e9ee);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #667eea;
    transition: all 0.2s ease;
}

.quick-action-card:hover .action-icon {
    background: linear-gradient(135deg, #667eea, #5a6fd8);
    color: #fff;
}

.quick-action-card span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Pengguna & Aktifitas Lists */
.pengguna-list,
.aktifitas-list {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pengguna-item,
.aktifitas-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.pengguna-item:last-child,
.aktifitas-item:last-child {
    border-bottom: none;
}

.pengguna-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #5a6fd8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.pengguna-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.pengguna-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    color: #888;
}

.aktifitas-icon {
    width: 36px;
    height: 36px;
    background: #f0f4f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #667eea;
}

.aktifitas-info {
    flex: 1;
}

.aktifitas-info h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.aktifitas-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    color: #888;
}

.aktifitas-time {
    font-size: 0.75rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 0.6rem 1rem;
    }

    .dashboard-header-section {
        flex-direction: column;
        padding: 1.5rem;
    }

    .user-welcome-card {
        min-width: 100%;
    }

    .welcome-text h1 {
        font-size: 1.5rem;
    }

    .dashboard-info-row {
        grid-template-columns: 1fr;
    }

    .dashboard-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-stat-card {
        padding: 1rem;
    }

    .quick-stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .quick-stat-value {
        font-size: 1.4rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-quick-stats {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-action-card {
        padding: 1rem;
    }

    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Minimal styles for dropdown checklist */
.svc-dropdown { 
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.svc-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.svc-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.svc-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    z-index: 1000;
    min-width: 240px;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.svc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}

.svc-item:hover {
    background: #f8f9fa;
}

.svc-item input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
}

.svc-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.svc-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Date range controls - make responsive */
.dashboard-date-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
