/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Reset & Global Styles */
:root {
    --primary-color: #007bff;
    --dark-color: #2c3e50;
    --light-color: #ffffff;
    --grey-color: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--grey-color);
    color: var(--dark-color);
}

/* --- Halaman Login & Publik (Modern) --- */
.login-page-body { display: flex; justify-content: center; align-items: center; height: 100vh; }
.login-container { width: 100%; max-width: 400px; padding: 20px; }
.login-box { background: var(--light-color); padding: 40px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); text-align: center; }
.login-logo { height: 50px; margin-bottom: 25px; }
.login-box h2 { margin: 0 0 10px 0; font-size: 1.8em; }
.login-box p { color: #777; margin-bottom: 30px; }
.login-form .form-group { margin-bottom: 20px; text-align: left; }
.login-form label { display: block; margin-bottom: 8px; font-weight: 500; }
.login-form input { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; box-sizing: border-box; }
.public-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 50px; background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.public-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.public-container h1 { font-size: 2.2em; margin-bottom: 40px; text-align: center; }
.room-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.room-card { background-color: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); border-top: 4px solid; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.room-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.1); }
.room-card h2 { margin-top: 0; font-size: 1.4em; }
.room-card .status-text { font-size: 1.3em; font-weight: 700; margin: 10px 0; }
.room-card.available { border-color: #28a745; }
.room-card.available .status-text { color: #28a745; }
.room-card.booked { border-color: #dc3545; }
.room-card.booked .status-text { color: #dc3545; }
.monthly-booking-section { margin-top: 70px; }
.monthly-booking-section h2 { font-size: 2em; margin-bottom: 30px; text-align: center; }
.badge { padding: 4px 10px; border-radius: 12px; font-size: 0.8em; font-weight: 600; color: #fff; }
.badge-zoom { background-color: #0E71EB; }
.badge-teams { background-color: #6264A7; }
.badge-offline { background-color: #F25022; }

/* --- Layout Aplikasi Utama --- */
.app-container { display: flex; }
.main-container { margin-left: 250px; width: calc(100% - 250px); display: flex; flex-direction: column; min-height: 100vh; }

/* --- Sidebar (Modern & Minimalis) --- */
.sidebar { width: 250px; background-color: var(--dark-color); color: var(--light-color); display: flex; flex-direction: column; height: 100vh; position: fixed; left: 0; top: 0; z-index: 1000; transition: transform 0.3s ease-in-out; }
.sidebar-header { padding: 22px 20px; text-align: center; border-bottom: 1px solid #3a5068; }
.logo { height: 38px; }
.sidebar-nav { flex-grow: 1; padding-top: 15px; }
.sidebar-nav a, .sidebar-footer a { display: flex; align-items: center; color: #cbd5e0; text-decoration: none; padding: 12px 25px; margin: 4px 10px; border-radius: 8px; transition: background-color 0.2s ease, color 0.2s ease; font-weight: 500; }
.sidebar-nav a i, .sidebar-footer a i { width: 30px; font-size: 1.1em; margin-right: 10px; }
.sidebar-nav a:hover, .sidebar-nav a.active { background-color: #4a5568; color: #ffffff; }
.sidebar-footer { padding: 15px; border-top: 1px solid #3a5068; }
.edit-profile-btn { background: transparent; }
.edit-profile-btn:hover { background-color: #4a5568; }
.logout-btn { background: #e53e3e; color: #ffffff; }
.logout-btn:hover { background-color: #c53030; }

/* --- Header, Konten, Footer Utama --- */
.main-header { background-color: #fff; padding: 15px 30px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.page-title { font-size: 1.8em; margin: 0; color: var(--dark-color); }
.user-profile { display: flex; align-items: center; }
.user-name { margin-right: 15px; font-weight: 500; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #ddd; }
.content-wrapper { padding: 30px; flex-grow: 1; }
.main-footer { text-align: center; padding: 20px; color: #888; font-size: 0.9em; background-color: #fff; border-top: 1px solid var(--border-color); }

/* --- Elemen Umum (Forms, Tables, Buttons, Alerts) --- */
.widget-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.widget { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.widget h3 { margin-top: 0; }
.form-container, .table-container { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 30px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 5px; box-sizing: border-box; }
.table-container table { width: 100%; border-collapse: collapse; text-align: left; }
.table-container th { background-color: #f8f9fa; padding: 12px 15px; font-weight: 600; }
.table-container td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); }
.btn { padding: 10px 20px; border-radius: 8px; text-decoration: none; cursor: pointer; border: none; font-weight: 600; font-size: 0.9em; transition: all 0.3s ease; }
.btn-primary { background-color: var(--primary-color); color: var(--light-color); }
.btn-primary:hover { background-color: #0056b3; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); }
.btn-block { width: 100%; }
.alert-error { background-color: #f8d7da; color: #721c24; padding: 12px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { padding: 15px; background-color: #d4edda; color: #155724; border-radius: 5px; margin-bottom: 20px; }

/* --- Kalender Modern --- */
#calendar-container {
    --fc-border-color: #e0e0e0; --fc-page-bg-color: #ffffff; --fc-neutral-bg-color: rgba(208, 208, 208, 0.3); --fc-list-event-dot-width: 10px; --fc-list-event-hover-bg-color: #f5f5f5;
    font-family: 'Poppins', sans-serif; background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.fc .fc-toolbar-title { font-size: 1.8em; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-title { font-size: 1.5em; margin: 0; }

/* --- Modal --- */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 30px; border-radius: 10px; width: 90%; max-width: 500px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); animation-name: animatetop; animation-duration: 0.4s; }
@keyframes animatetop { from {top: -300px; opacity: 0} to {top: 0; opacity: 1} }
.close-button { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.action-buttons { margin-top: 20px; display: flex; gap: 10px; }
.btn-edit { background-color: #ffc107; color: #212529; }
.btn-danger { background-color: #dc3545; color: white; }


/* --- KODE BARU: CSS untuk Tampilan Responsif / Mobile --- */
.mobile-menu-button {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 2000;
    }
    .sidebar.sidebar-show {
        transform: translateX(0);
    }
    .main-container {
        margin-left: 0;
        width: 100%;
    }
    .mobile-menu-button {
        display: block;
        background: none;
        border: none;
        font-size: 1.5em;
        color: var(--dark-color);
        cursor: pointer;
        margin-right: 15px;
    }
    .main-header .page-title {
        font-size: 1.2em;
    }
    .user-profile .user-name {
        display: none;
    }
    .content-wrapper, .public-container {
        padding: 15px;
    }
    .widget-container, .room-status-grid {
        grid-template-columns: 1fr;
    }
    .public-header {
        padding: 15px 20px;
    }
    .public-container h1 {
        font-size: 1.8em;
    }
    .table-container {
        overflow-x: auto;
    }

    /* Perbaikan untuk toolbar kalender di mobile */
    .fc .fc-header-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .fc .fc-toolbar-chunk {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .fc .fc-toolbar-title {
        font-size: 1.6em;
    }
}