﻿/* =====================================================
    STYLE HALAMAN MANAJEMEN & GURU
   SMK TI Bali Global Badung
   ===================================================== */

/* Foto header staf (biar langsung keliatan vibesnya) */
.staff-photo-header {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.staff-photo-header img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tabel data staf (biar rapi dan gampang dibaca) */
.staff-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    overflow: hidden;
    table-layout: fixed;
}

.staff-table th:nth-child(1) { width: 25%; } /* Kolom Foto */
.staff-table th:nth-child(2) { width: 50%; } /* Kolom Nama (Paling lebar) */
.staff-table th:nth-child(3) { width: 25%; } /* Kolom Jabatan */

.staff-table thead {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.staff-table th {
    padding: 16px 20px;
    text-align: left ;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.staff-table th:nth-child(3),
.staff-table td:nth-child(3) {
    text-align: left !important;
    width: 250px;              /* Memberi ruang lebih luas untuk kolom Jabatan */
    min-width: 200px;
    padding-right: 20px
}

.staff-table td {
    padding: 14px 20px;
    text-align: left !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
    font-size: 1.15rem; 
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.staff-name {
    text-align: left;
    font-size: 1.2rem; 
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f8fafc;
    width: 45%;
}

.staff-table tbody tr {
    transition: all 0.3s ease;
}

.staff-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.staff-table tbody tr:last-child td {
    border-bottom: none;
}
.staff-photo {
    width: 140px;       
    height: 175px;      
    object-fit: cover;
    border-radius: 10px; 
    border: 3px solid rgba(59, 130, 246, 0.4);
    display: block;
    margin: 10px auto;
    transition: all 0.3s ease;
}

.staff-photo:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .staff-table th:nth-child(1) { width: 35%; }
    .staff-table th:nth-child(2) { width: 65%; }
    .staff-table th:nth-child(3) { display: none; } 
    .staff-photo { width: 100px; height: 125px; }
}

/* Badge role/jabatan */
.role-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(139, 92, 246, 0.3);
    white-space: normal;
    margin-left: 0;
    word-wrap: break-word;     /* Memutus kata jika sangat panjang */
    max-width: 250px;          /* Batas lebar maksimal agar tetap rapi */
    line-height: 1.4;          /* Memberi jarak antar baris jika teks wrap */
    text-align: left;          /* Menjaga teks tetap rata kiri */
}

.role-badge.management {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-badge.teacher {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-badge.staff {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Kategori staf (dikelompokin biar gak campur aduk) */
.staff-category {
    margin-bottom: 50px;
}

.staff-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.staff-category h3 i {
    color: #3b82f6;
}

/* Badge jumlah staff */
.staff-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 30px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-left: auto;
}

.staff-count strong {
    color: #3b82f6;
    font-size: 1.1rem;
}



/* Tabel responsif (biar kebaca di HP) */
@media (max-width: 768px) {
    .staff-table {
        display: block;
        overflow-x: auto;
    }
    
    .staff-table th,
    .staff-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Mode terang (light mode) */
[data-theme="light"] .staff-table {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .staff-table td {
    color: #334155;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .staff-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

[data-theme="light"] .staff-count {
    background: rgba(59, 130, 246, 0.08);
    color: #64748b;
}
