/* ============================================
   LAYANAN DETAIL PAGES - GLOBAL CSS
   Light Theme, Compact, Bootstrap 5 Compatible
   Responsive Mobile & Desktop
   ============================================ */

/* ============================================
   1. BASE LAYOUT
   ============================================ */
.layanan-detail-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 1rem;
}

/* ============================================
   2. PAGE HEADER
   ============================================ */
.layanan-detail-header {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.layanan-detail-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.layanan-detail-header p {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ============================================
   3. DETAIL CARD
   ============================================ */
.layanan-detail-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.layanan-detail-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.layanan-detail-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.layanan-detail-card-header * {
    position: relative;
    z-index: 1;
}

.layanan-detail-card-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: white;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.layanan-detail-card-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.9375rem;
    color: white;
    font-weight: 500;
}

.layanan-detail-card .layanan-detail-section-title {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    border-radius: 10px 10px 0 0;
}

.layanan-detail-card .layanan-detail-section {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ============================================
   4. INFO SECTIONS
   ============================================ */
.layanan-detail-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.layanan-detail-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.layanan-detail-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.layanan-detail-section-title i {
    color: #667eea;
    font-size: 0.9375rem;
}

/* ============================================
   5. INFO ITEMS
   ============================================ */
.layanan-detail-info-item {
    display: flex;
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    align-items: flex-start;
}

.layanan-detail-info-item:hover {
    background: #e9ecef;
    transition: background 0.2s ease;
}

.layanan-detail-info-label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.layanan-detail-info-value {
    color: #212529;
    font-size: 0.875rem;
    flex: 1;
    word-break: break-word;
}

.layanan-detail-info-full {
    grid-column: 1 / -1;
}

/* ============================================
   6. BADGES & STATUS
   ============================================ */
.layanan-detail-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.layanan-detail-badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.layanan-detail-badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #856404;
}

.layanan-detail-badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.layanan-detail-badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
    color: white;
}

.layanan-detail-badge-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.layanan-detail-badge-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

/* ============================================
   7. STATS CARDS (Mini Summary)
   ============================================ */
.layanan-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.layanan-detail-stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.layanan-detail-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.layanan-detail-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.layanan-detail-stat-value-sm {
    font-size: 0.875rem !important;
    font-weight: 600;
}

/* ============================================
   8. ACTION BUTTONS
   ============================================ */
.layanan-detail-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 2px solid #e9ecef;
    margin-top: 0;
    flex-wrap: wrap;
}

.layanan-detail-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    min-height: 42px;
    flex: 1;
    min-width: 140px;
}

.layanan-detail-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.layanan-detail-actions .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
}

.layanan-detail-actions .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: #856404;
}

.layanan-detail-actions .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
}

.layanan-detail-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    color: white;
}

.layanan-detail-actions .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
}

.layanan-detail-actions .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
    border: none;
    color: white;
}

.layanan-detail-actions .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: white;
}

.layanan-detail-actions .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

/* Action buttons vertikal di dalam card */
.layanan-detail-card .layanan-detail-actions {
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border-top: 2px solid #e9ecef;
    margin-top: 0;
}

.layanan-detail-card .layanan-detail-actions .btn {
    width: 100%;
    min-width: auto;
}

/* ============================================
   9. CONTENT AREAS
   ============================================ */
.layanan-detail-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.7;
}

.layanan-detail-content h1,
.layanan-detail-content h2,
.layanan-detail-content h3,
.layanan-detail-content h4,
.layanan-detail-content h5,
.layanan-detail-content h6 {
    color: #2c3e50;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.layanan-detail-content p {
    margin-bottom: 1rem;
}

.layanan-detail-content ul,
.layanan-detail-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.layanan-detail-content a {
    color: #667eea;
    text-decoration: none;
}

.layanan-detail-content a:hover {
    text-decoration: underline;
}

/* ============================================
   10. RATING DISPLAY
   ============================================ */
.layanan-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.layanan-rating-stars {
    display: flex;
    gap: 0.25rem;
}

.layanan-rating-stars i {
    color: #ffc107;
    font-size: 1rem;
}

.layanan-rating-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

/* ============================================
   11. USER INFO
   ============================================ */
.layanan-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.layanan-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.layanan-user-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.layanan-user-details h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.layanan-user-details p {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0;
}

/* ============================================
   12. TIMELINE
   ============================================ */
.layanan-timeline {
    position: relative;
    padding-left: 2rem;
}

.layanan-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.layanan-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.layanan-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
}

.layanan-timeline-item-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.layanan-timeline-item-time {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.layanan-timeline-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.375rem;
}

.layanan-timeline-item-description {
    font-size: 0.875rem;
    color: #495057;
    margin: 0;
}

/* ============================================
   13. RESPONSIVE - MOBILE (< 576px)
   ============================================ */
@media (max-width: 575.98px) {
    .layanan-detail-wrapper {
        padding: 0.75rem;
    }
    
    .layanan-detail-header {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .layanan-detail-header h4 {
        font-size: 1.125rem;
    }
    
    .layanan-detail-header p {
        font-size: 0.8125rem;
    }
    
    .layanan-detail-card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .layanan-detail-card-header {
        padding: 1.5rem 1rem;
    }
    
    .layanan-detail-card-header h1 {
        font-size: 1.25rem;
    }
    
    .layanan-detail-card-header p {
        font-size: 0.875rem;
    }
    
    .layanan-detail-card .layanan-detail-section-title {
        font-size: 0.9375rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .layanan-detail-card .layanan-detail-section {
        padding: 0 1rem 1rem 1rem;
    }
    
    .layanan-detail-section {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }
    
    .layanan-detail-section-title {
        font-size: 0.9375rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.375rem;
    }
    
    .layanan-detail-section-title i {
        font-size: 0.8125rem;
    }
    
    .layanan-detail-info-item {
        flex-direction: column;
        padding: 0.75rem;
        margin-bottom: 0.625rem;
    }
    
    .layanan-detail-info-label {
        min-width: 100%;
        margin-bottom: 0.25rem;
        font-size: 0.8125rem;
    }
    
    .layanan-detail-info-value {
        font-size: 0.8125rem;
    }
    
    .layanan-detail-badge {
        padding: 0.3125rem 0.625rem;
        font-size: 0.6875rem;
    }
    
    .layanan-detail-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
    
    .layanan-detail-stat-card {
        padding: 0.875rem;
    }
    
    .layanan-detail-stat-label {
        font-size: 0.6875rem;
    }
    
    .layanan-detail-stat-value {
        font-size: 1.25rem;
    }
    
    .layanan-detail-actions {
        flex-direction: column;
        gap: 0.625rem;
        padding: 1rem;
    }
    
    .layanan-detail-actions .btn {
        width: 100%;
        min-width: auto;
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }
    
    .layanan-detail-card .layanan-detail-actions {
        padding: 1rem;
    }
    
    .layanan-detail-content {
        padding: 1rem;
        font-size: 0.8125rem;
    }
    
    .layanan-user-info {
        padding: 0.875rem;
        gap: 0.875rem;
    }
    
    .layanan-user-avatar,
    .layanan-user-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .layanan-user-details h6 {
        font-size: 0.875rem;
    }
    
    .layanan-user-details p {
        font-size: 0.75rem;
    }
    
    .layanan-rating-stars i {
        font-size: 0.875rem;
    }
    
    .layanan-rating-value {
        font-size: 0.8125rem;
    }
}

/* ============================================
   14. RESPONSIVE - TABLET (576px - 767px)
   ============================================ */
@media (min-width: 576px) and (max-width: 767.98px) {
    .layanan-detail-wrapper {
        padding: 0.875rem;
    }
    
    .layanan-detail-info-item {
        padding: 0.875rem 1rem;
    }
    
    .layanan-detail-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   15. RESPONSIVE - DESKTOP (≥ 768px)
   ============================================ */
@media (min-width: 768px) {
    .layanan-detail-wrapper {
        padding: 1.5rem;
    }
    
    .layanan-detail-header {
        padding: 1.5rem 2rem;
        margin-bottom: 1.5rem;
    }
    
    .layanan-detail-header h4 {
        font-size: 1.375rem;
    }
    
    .layanan-detail-card-header {
        padding: 2.5rem 2rem;
    }
    
    .layanan-detail-card .layanan-detail-section-title {
        font-size: 1.0625rem;
        padding: 1.375rem 1.75rem;
    }
    
    .layanan-detail-card .layanan-detail-section {
        padding: 0 1.75rem 1.75rem 1.75rem;
    }
    
    .layanan-detail-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .layanan-detail-actions {
        padding: 1.5rem 1.75rem;
    }
}

/* ============================================
   16. LARGE DESKTOP (≥ 1200px)
   ============================================ */
@media (min-width: 1200px) {
    .layanan-detail-header {
        padding: 1.75rem 2.25rem;
    }
    
    .layanan-detail-header h4 {
        font-size: 1.5rem;
    }
    
    .layanan-detail-card-header {
        padding: 3rem 2.5rem;
    }
    
    .layanan-detail-card-header h1 {
        font-size: 1.625rem;
    }
    
    .layanan-detail-card .layanan-detail-section-title {
        font-size: 1.125rem;
        padding: 1.5rem 2rem;
    }
    
    .layanan-detail-card .layanan-detail-section {
        padding: 0 2rem 2rem 2rem;
    }
    
    .layanan-detail-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* ============================================
   17. UTILITIES
   ============================================ */
.layanan-detail-wrapper .text-muted {
    color: #6c757d !important;
}

.layanan-detail-wrapper .text-danger {
    color: #dc3545 !important;
}

.layanan-detail-wrapper .text-success {
    color: #28a745 !important;
}

.layanan-detail-wrapper .text-warning {
    color: #ffc107 !important;
}

.layanan-detail-wrapper .text-info {
    color: #17a2b8 !important;
}

.layanan-detail-wrapper .fw-bold {
    font-weight: 600 !important;
}

