/* ============================================
   LAYANAN DASHBOARD - GLOBAL CSS
   Compact, 2-Column Layout, Mobile & Desktop Responsive
   ============================================ */

/* ============================================
   1. BASE LAYOUT
   ============================================ */
.layanan-dashboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 1rem;
}

/* ============================================
   2. DASHBOARD HEADER
   ============================================ */
.layanan-dashboard-header {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.layanan-dashboard-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.layanan-dashboard-header p {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-bottom: 0;
}

.layanan-dashboard-header .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    min-height: 36px;
    border-radius: 8px;
}

/* ============================================
   3. STATS GRID - 2 COLUMNS ON MOBILE
   ============================================ */
.layanan-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns everywhere */
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.layanan-stat-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.layanan-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Top border indicator */
.layanan-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.layanan-stat-card.feedback::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.layanan-stat-card.faq::before {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.layanan-stat-card.contact::before {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
}

.layanan-stat-card.service::before {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.layanan-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: white;
}

.layanan-stat-icon.feedback {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.layanan-stat-icon.faq {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.layanan-stat-icon.contact {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
}

.layanan-stat-icon.service {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.layanan-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.375rem;
    line-height: 1;
}

.layanan-stat-label {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-bottom: 0.625rem;
    font-weight: 600;
}

.layanan-stat-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.layanan-stat-details span {
    display: block;
}

/* ============================================
   4. QUICK ACTIONS
   ============================================ */
.layanan-quick-actions {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.layanan-quick-actions h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.layanan-action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 0.75rem;
}

.layanan-action-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.layanan-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
    color: #667eea;
    text-decoration: none;
}

.layanan-action-btn i {
    font-size: 1.125rem;
    color: #667eea;
    flex-shrink: 0;
}

.layanan-action-btn div {
    flex: 1;
}

.layanan-action-btn strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.layanan-action-btn small {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}

/* ============================================
   5. RECENT ACTIVITY
   ============================================ */
.layanan-recent-activity {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.layanan-recent-activity h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.layanan-activity-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.layanan-activity-item:last-child {
    border-bottom: none;
}

.layanan-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.875rem;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
}

.layanan-activity-icon.feedback {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.layanan-activity-icon.faq {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.layanan-activity-icon.contact {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
}

.layanan-activity-icon.service {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.layanan-activity-content {
    flex: 1;
    min-width: 0;
}

.layanan-activity-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
}

.layanan-activity-description {
    color: #6c757d;
    font-size: 0.8125rem;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.layanan-activity-time {
    color: #6c757d;
    font-size: 0.75rem;
}

/* ============================================
   6. EMPTY STATE
   ============================================ */
.layanan-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.layanan-empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.layanan-empty-state h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.layanan-empty-state p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ============================================
   7. RESPONSIVE - MOBILE (< 576px)
   ============================================ */
@media (max-width: 575.98px) {
    .layanan-dashboard {
        padding: 0.625rem;
    }
    
    .layanan-dashboard-header {
        padding: 0.875rem 1rem;
        margin-bottom: 0.875rem;
        border-radius: 8px;
    }
    
    .layanan-dashboard-header h4 {
        font-size: 1rem;
    }
    
    .layanan-dashboard-header p {
        font-size: 0.75rem;
    }
    
    .layanan-dashboard-header .btn {
        padding: 0.4375rem 0.75rem;
        font-size: 0.75rem;
        min-height: 32px;
    }
    
    /* Keep 2-column grid for stats */
    .layanan-stats-grid {
        gap: 0.625rem;
        margin-bottom: 0.875rem;
    }
    
    .layanan-stat-card {
        padding: 0.875rem;
        border-radius: 8px;
    }
    
    .layanan-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
    
    .layanan-stat-number {
        font-size: 1.5rem;
    }
    
    .layanan-stat-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .layanan-stat-details {
        font-size: 0.6875rem;
    }
    
    .layanan-quick-actions {
        padding: 0.875rem 1rem;
        margin-bottom: 0.875rem;
    }
    
    .layanan-quick-actions h5 {
        font-size: 0.9375rem;
        margin-bottom: 0.875rem;
    }
    
    /* Keep 2-column grid for actions */
    .layanan-action-buttons-grid {
        gap: 0.625rem;
    }
    
    .layanan-action-btn {
        padding: 0.875rem;
        border-radius: 8px;
    }
    
    .layanan-action-btn i {
        font-size: 1rem;
    }
    
    .layanan-action-btn strong {
        font-size: 0.8125rem;
    }
    
    .layanan-action-btn small {
        font-size: 0.6875rem;
    }
    
    .layanan-recent-activity {
        padding: 0.875rem 1rem;
    }
    
    .layanan-recent-activity h5 {
        font-size: 0.9375rem;
        margin-bottom: 0.875rem;
    }
    
    .layanan-activity-item {
        padding: 0.75rem 0;
    }
    
    .layanan-activity-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
        margin-right: 0.75rem;
    }
    
    .layanan-activity-title {
        font-size: 0.8125rem;
    }
    
    .layanan-activity-description {
        font-size: 0.75rem;
    }
    
    .layanan-activity-time {
        font-size: 0.6875rem;
    }
    
    .layanan-empty-state {
        padding: 1.5rem 0.75rem;
    }
    
    .layanan-empty-state i {
        font-size: 2.5rem;
    }
    
    .layanan-empty-state h5 {
        font-size: 0.9375rem;
    }
    
    .layanan-empty-state p {
        font-size: 0.8125rem;
    }
    
    /* Stack header buttons on very small screens */
    .layanan-dashboard-header .d-flex.gap-2 {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .layanan-dashboard-header .d-flex.gap-2 .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

/* ============================================
   8. RESPONSIVE - TABLET (576px - 991px)
   ============================================ */
@media (min-width: 576px) and (max-width: 991.98px) {
    .layanan-dashboard {
        padding: 0.875rem;
    }
    
    .layanan-stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns */
        gap: 1rem;
    }
    
    .layanan-action-buttons-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns */
    }
}

/* ============================================
   9. RESPONSIVE - DESKTOP (≥ 992px)
   ============================================ */
@media (min-width: 992px) {
    .layanan-dashboard {
        padding: 1.25rem;
    }
    
    .layanan-dashboard-header {
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .layanan-dashboard-header h4 {
        font-size: 1.25rem;
    }
    
    /* 4 columns for stats on large screens */
    .layanan-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .layanan-stat-card {
        padding: 1.25rem;
    }
    
    .layanan-stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .layanan-stat-number {
        font-size: 2rem;
    }
    
    .layanan-stat-label {
        font-size: 0.875rem;
    }
    
    .layanan-stat-details {
        font-size: 0.8125rem;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .layanan-quick-actions {
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    /* 4 columns for actions on large screens */
    .layanan-action-buttons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .layanan-action-btn {
        padding: 1.25rem;
    }
    
    .layanan-recent-activity {
        padding: 1.25rem 1.5rem;
    }
    
    .layanan-activity-item {
        padding: 1rem 0;
    }
    
    .layanan-activity-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 1rem;
    }
}

/* ============================================
   10. UTILITIES
   ============================================ */
.layanan-dashboard .text-muted {
    color: #6c757d !important;
}

.layanan-dashboard .text-warning {
    color: #ffc107 !important;
}

.layanan-dashboard .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.layanan-dashboard .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.layanan-dashboard .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

