@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Montserrat:wght@300;400;500&display=swap');

/* ===== GLOBAL ===== */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #fdfaf6, #efe7da);
    color: #2c2c2c;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    box-shadow: 2px 0 20px rgba(0,0,0,0.05);
    padding: 40px 25px;
    transition: 0.3s;
    z-index: 999;
}

.sidebar.active {
    left: -260px;
}

.sidebar h2 {
    font-family: 'Cinzel', serif;
    color: #b8965b;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #444;
    border-radius: 8px;
    transition: 0.25s;
}

.sidebar a:hover {
    background: #f3e9d7;
    color: #b8965b;
}

/* ===== MENU BUTTON ===== */
.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    background: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    z-index: 1000;
    cursor: pointer;
}

/* ===== CONTENT ===== */
.main-content {
    margin-left: 260px;
    padding: 30px;
}

/* ===== HEADER ===== */
.page-header h1 {
    font-family: 'Cinzel', serif;
}

/* ===== CARD ===== */
.stat-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: #b8965b;
}

/* ===== TABLE ===== */
.table-card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    overflow-x: auto;
}

.table-card table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

table th {
    background: #f3e9d7;
    color: #b8965b;
    padding: 10px;
    text-align: left;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* ===== STATUS ===== */
.status-hadir {
    color: #27ae60 !important;
    font-weight: 600;
}

.status-belum {
    color: #e74c3c !important;
    font-weight: 600;
}

/* ===== BUTTON ===== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
    background: #b8965b;
    color: #fff !important;
    border: none;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn:hover {
    background: #9c7f4c;
    transform: translateY(-2px);
}

/* VARIAN */
.btn-success {
    background: #27ae60 !important;
}

.btn-danger {
    background: #e74c3c !important;
}

.btn-selesai {
    background: #e74c3c !important;
}

/* ===== AKSI BUTTON ===== */
.action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    animation: fadeIn 0.3s ease;
}

/* INPUT */
.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* MODAL BUTTON */
.modal-content .btn {
    border-radius: 10px;
    padding: 10px 16px;
}

/* CANCEL */
.btn-cancel {
    background: #ccc !important;
    color: #333 !important;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE ===== */
@media (max-width:768px){

    .sidebar {
        left: -260px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    /* CARD GRID */
    .stat-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .card {
        width: 100%;
        padding: 15px;
    }

    .card h2 {
        font-size: 18px;
    }

    /* BUTTON */
    .btn {
        width: 100%;
        font-size: 12px;
        height: 34px;
    }

    /* BUTTON GROUP */
    .btn-group,
    .action-group,
    div[style*="margin-bottom:20px"] {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* SEARCH */
    #searchInput {
        width: 100% !important;
    }

    /* TABLE */
    table {
        min-width: 600px;
        font-size: 12px;
    }

    th, td {
        padding: 8px;
        white-space: nowrap;
    }
}

/* import tamu */
.import-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.import-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

/* JUDUL */
.import-card h2 {
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
}

/* DESKRIPSI */
.import-desc {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

/* BOX FORMAT */
.format-box {
    background: #f3e9d7;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: left;
}

/* FILE INPUT */
.file-input {
    border: 2px dashed #b8965b;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 15px;
    display: block;
}

.file-input:hover {
    background: #faf7f2;
}

.file-input input {
    display: none;
}

/* FILE TEXT */
#fileText {
    font-size: 13px;
    color: #666;
}

/* BUTTON GROUP */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* MOBILE */
@media (max-width:768px){
    .import-card {
        padding: 20px;
    }
}