/* ============================================================
   app.css — Booking Ruangan App
   ============================================================ */

/* --- GLOBAL --- */
body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Arial, sans-serif;
    padding-top: 65px;
}

.main-content {
    padding: 20px 25px;
    min-height: calc(100vh - 130px);
}

/* --- NAVBAR --- */
.navbar-default {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a {
    color: #ecf0f1 !important;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a {
    background-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border-radius: 4px;
}
.navbar-default .navbar-brand { font-weight: 700; font-size: 18px; }
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

/* --- LOGIN PAGE --- */
body.login-body {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-wrapper { width: 100%; max-width: 420px; padding: 20px; }
.login-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo h2 { color: #2c3e50; font-weight: 700; margin-top: 10px; }
.login-form .form-control { height: 45px; font-size: 14px; }
.login-form .btn { height: 45px; font-size: 15px; font-weight: 600; margin-top: 10px; }

/* --- STAT CARDS --- */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card-blue   { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-card-green  { background: linear-gradient(135deg, #27ae60, #1e8449); }
.stat-card-orange { background: linear-gradient(135deg, #e67e22, #d35400); }
.stat-card-purple { background: linear-gradient(135deg, #9b59b6, #7d3c98); }
.stat-icon { font-size: 36px; margin-right: 20px; opacity: 0.8; }
.stat-info h3 { font-size: 28px; font-weight: 700; margin: 0; }
.stat-info p  { margin: 0; font-size: 13px; opacity: 0.9; }

/* --- PANELS --- */
.panel { border: none; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.panel-heading { border-radius: 10px 10px 0 0 !important; background: #fff; border-bottom: 1px solid #eee; padding: 15px 20px; }
.panel-title { font-size: 15px; font-weight: 600; color: #2c3e50; }
.panel-footer { background: #f8f9fa; border-top: 1px solid #eee; }
.p0 .panel-body, .p0 { padding: 0 !important; }
.mb0 { margin-bottom: 0 !important; }

/* --- BUTTONS --- */
.btn-action { margin-bottom: 10px; text-align: left; }
.btn-action i { margin-right: 8px; }

/* --- CALENDAR --- */
.monthly-table { table-layout: fixed; }
.monthly-table th { text-align: center; background: #2c3e50; color: #fff; padding: 10px; }
.calendar-cell { height: 100px; vertical-align: top; padding: 5px !important; }
.empty-cell { background-color: #f9f9f9; }
.today-cell { background-color: #fff9e6 !important; border: 2px solid #f39c12 !important; }
.cell-date { margin-bottom: 4px; }
.date-num {
    display: inline-block;
    width: 28px; height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}
.date-num:hover { background: #3498db; color: #fff !important; }
.date-num.has-bookings { background: #e74c3c; color: #fff !important; }
.mini-booking {
    background: #3498db;
    color: #fff;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 11px;
    margin-bottom: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* --- WEEKLY VIEW --- */
.weekly-table { margin: 0; }
.weekly-table th { width: 120px; }
.today-row { background-color: #fff9e6; }
.day-label { text-align: center; }
.day-name { font-size: 12px; color: #666; }
.day-num  { font-size: 24px; font-weight: 700; color: #2c3e50; }
.booking-chip {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border-radius: 20px;
    padding: 3px 12px;
    margin: 2px;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.1s;
}
.booking-chip:hover { transform: scale(1.02); }

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}
.empty-state i { font-size: 48px; margin-bottom: 15px; display: block; }
.empty-state.small { padding: 20px; }
.empty-state.small p { font-size: 13px; margin: 0; }

/* --- ROOM CARD --- */
.room-card { transition: transform 0.2s, box-shadow 0.2s; }
.room-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.room-card-header { background: linear-gradient(135deg, #2c3e50, #3498db) !important; }
.room-card-header .panel-title { color: #fff !important; }

/* --- PAGE HEADER --- */
.page-header {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}
.page-header h2 { color: #2c3e50; font-size: 22px; }

/* --- FOOTER --- */
.footer {
    background: #fff;
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
    .main-content { padding: 10px; }
    .stat-card { margin-bottom: 10px; }
    .calendar-cell { height: 60px; font-size: 11px; }
    .monthly-table { font-size: 11px; }
}

/* --- TABLE --- */
.thead-dark th { background-color: #2c3e50 !important; color: #fff !important; }
.table-hover tbody tr:hover { background-color: #f0f8ff; }

/* --- ALERTS --- */
.alert { border-radius: 8px; border: none; }
