/* GLOBAL STYLES */
body {
    background-color: white; /* Request: Background selalu putih */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

.container-fluid {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    /* Request: Lebar kotak jangan dibatasi (menyesuaikan layar) */
}

/* CARD STYLING (Artistic Touch) */
.card-artistic {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Soft shadow */
    border: 1px solid #f0f0f0;
    padding: 30px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.card-artistic:hover {
    transform: translateY(-5px); /* Efek melayang sedikit saat hover */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* HEADER */
.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.header-title h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

.header-title span {
    color: #e67e22; /* Warna aksen Inersia (asumsi orange/trust) */
    font-weight: bold;
}

/* CHECK-IN FORM */
.checkin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.location-option {
    display: none; /* Hide radio button asli */
}

.location-card {
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.location-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #95a5a6;
}

/* Efek saat dipilih */
.location-option:checked + .location-card {
    border-color: #3498db;
    background-color: #ebf5fb;
}

.location-option:checked + .location-card i {
    color: #3498db;
}

.btn-checkin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Artistic Gradient */
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

/* DASHBOARD STATUS (AFTER CHECKIN) */
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}
.status-available { background-color: #d4edda; color: #155724; }
.status-focus { background-color: #cce5ff; color: #004085; }
.status-meeting { background-color: #fff3cd; color: #856404; }

.live-clock {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin: 20px 0;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 20px; /* Jarak antar input */
}

/* Style untuk Input Field */
.input-artistic {
    width: 100%;
    height: 50px; /* Tinggi fix agar konsisten */
    padding: 10px 15px 10px 45px; /* Padding Kiri 45px memberi ruang untuk ikon */
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f8f9fa;
    font-size: 1rem;
    box-sizing: border-box; /* Penting agar padding tidak melebarkan kotak */
    transition: all 0.3s ease;
}

.input-artistic:focus {
    background-color: #fff;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Style untuk Ikon di dalam input */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%); /* Trik CSS agar ikon PERSIS di tengah vertikal */
    color: #aab7c4;
    font-size: 1.1rem;
    pointer-events: none; /* Agar klik pada ikon tembus ke input */
    z-index: 2;
}

/* Label agar tidak terlalu mepet */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

input[list] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23555" viewBox="0 0 16 16"><path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center; /* Posisi di kanan */
    background-size: 12px;
    cursor: text; /* Tetap cursor teks biar tahu bisa diketik */
}

/* Hilangkan panah bawaan browser yang jelek (Chrome/Webkit) */
input[list]::-webkit-calendar-picker-indicator {
    opacity: 0; /* Sembunyikan yang asli, kita pakai background image di atas */
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* --- HISTORY PAGE STYLING --- */
.history-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.history-card:hover {
    transform: translateX(5px);
    border-color: #3498db;
}

.h-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    color: #2c3e50;
}

.d-day { font-size: 1.5rem; font-weight: bold; line-height: 1; }
.d-month { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }

.h-info { flex: 1; }
.h-time { font-weight: bold; font-size: 1.1rem; color: #333; margin-bottom: 4px; }
.h-loc { font-size: 0.85rem; color: #777; }

.badge-on_track { background: #d4edda; color: #155724; }
.badge-completed { background: #cce5ff; color: #004085; }
.badge-blocked { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }

.h-file { color: #aaa; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }
.arrow-icon { margin-left: 10px; color: #eee; }

.btn-nav {
    background: white;
    border: 1px solid #ddd;
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #555;
    text-decoration: none;
    transition: 0.2s;
}
.btn-nav:hover { background: #eee; }

/* FILE GRID (DETAIL PAGE) */
/* --- FILE GRID & PREVIEW STYLING (REVISI) --- */

.file-grid {
    display: grid;
    /* Membuat kolom otomatis selebar minimal 130px */
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    text-align: center;
    transition: all 0.2s;
    height: 110px; /* Tinggi kartu fix agar rapi */
    overflow: hidden; /* Sembunyikan konten yang keluar batas */
}

.file-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

/* Area Icon / Gambar Preview */
.file-icon {
    width: 100%;
    height: 60px; /* Tinggi area gambar */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 4px;
}

/* Styling Khusus FontAwesome Icon */
.file-icon i {
    font-size: 2rem;
}

/* Styling Khusus Gambar Preview */
.file-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar akan di-crop agar memenuhi kotak (rapi) */
    object-position: center;
}

/* Styling Nama File (Agar tidak tabrakan) */
.file-name {
    font-size: 0.75rem;
    color: #555;
    width: 100%;
    
    /* Logic Pemotong Teks (...) */
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.file-item:hover .file-name {
    color: #3498db;
}

/* --- DATE FILTER STYLE --- */
.input-date-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #555;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fff;
}

.input-date-filter:focus,
.input-date-filter:hover {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* --- EMPTY STATE STYLING (REVISI) --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 15px;
    border: 2px dashed #eee; /* Garis putus-putus memberi kesan "area kosong" */
    margin-top: 10px;
}

.empty-icon {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite; /* Animasi melayang halus */
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.empty-state p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.empty-state strong {
    color: #3498db;
    background: #f0f8ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.btn-empty-action {
    display: inline-block;
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-empty-action:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Animasi Melayang */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Tombol Reset Filter yang Kecil & Elegan */
.btn-reset-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #ddd;
}

.btn-reset-filter:hover {
    background-color: #e74c3c; /* Warna merah saat hover */
    color: white;
    border-color: #e74c3c;
    transform: rotate(-90deg); /* Efek putar sedikit saat dihover */
}

/* --- MONITORING PAGE STYLING --- */

/* 1. Stats Bar */
.stats-bar {
    display: flex;
    gap: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}
.stat-num { font-size: 1.2rem; font-weight: bold; color: #2c3e50; }
.stat-label { font-size: 0.7rem; color: #777; text-transform: uppercase; letter-spacing: 0.5px; }

/* 2. Team Grid Layout */
.team-grid {
    display: grid;
    /* Responsive: Minimal lebar kartu 250px, sisanya menyesuaikan */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* 3. Team Card Design */
.team-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.team-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.05); }

/* Border warna-warni di kiri kartu sesuai status */
.status-border-available { border-left: 5px solid #2ecc71; }
.status-border-focus     { border-left: 5px solid #3498db; }
.status-border-meeting   { border-left: 5px solid #f1c40f; }
.status-border-standby   { border-left: 5px solid #e67e22; }
.status-border-offline   { border-left: 5px solid #95a5a6; }

/* Header Kartu */
.tc-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }

/* Avatar Inisial */
.tc-avatar {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Warna Gradasi Artistik */
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.2rem;
    box-shadow: 0 3px 6px rgba(118, 75, 162, 0.3);
}

.tc-info { overflow: hidden; }
.tc-name { margin: 0; font-size: 1rem; color: #2c3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-loc { font-size: 0.8rem; color: #777; margin-top: 3px; }

/* Body Kartu */
.tc-body { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #eee; padding-top: 15px; }

.tc-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tc-time { font-size: 0.75rem; color: #999; text-align: right; }

.tc-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover; /* Agar gambar tidak gepeng */
    border: 2px solid #fff; /* Border putih tipis agar rapi */
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}