:root {
  --primary-color: #1a73e8;
  --secondary-color: #4285f4;
  --success-color: #0f9d58;
  --warning-color: #f4b400;
  --danger-color: #db4437;
  --light-color: #f8f9fa;
  --dark-color: #202124;
  --gray-color: #5f6368;
}

/* ===========================================
   BASE STYLES
   =========================================== */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  padding-top: 76px; /* Space for fixed navbar */
}

/* ===========================================
   FIXED NAVBAR - CRITICAL FIXES
   =========================================== */
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100% !important;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
  color: white !important;
  text-decoration: none;
}

.navbar-brand:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Navbar Links */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 8px 12px !important;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.navbar-nav .nav-link.active {
  color: white !important;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

/* ===========================================
   DROPDOWN FIXES - MOST IMPORTANT
   =========================================== */
.navbar .dropdown-menu {
  position: fixed !important;
  z-index: 1060 !important;
  transform: none !important;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 8px;
  min-width: 220px;
  max-width: 300px;
}

.navbar .dropdown-menu.show {
  opacity: 1;
  pointer-events: auto;
  top: 70px !important;
  right: 20px !important;
  left: auto !important;
  transform: translateY(0) !important;
}

/* User Dropdown Button */
.navbar #userDropdown {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.2s ease;
}

.navbar #userDropdown:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Dropdown Items */
.dropdown-item {
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(2px);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

.dropdown-item-text {
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  margin: -4px -12px 8px -12px;
  border-radius: 8px 8px 0 0;
}

/* Container untuk semua badge fasilitas */
.facilities-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    max-width: 100%;
    align-items: center;
}

/* Item fasilitas individual */
.facility-item {
    display: inline-flex;
    margin: 0;
    flex-shrink: 0;
}

/* Badge fasilitas */
.facility-badge {
    background-color: #e3f2fd;
    color: #0277bd;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #81d4fa;
    white-space: nowrap; /* Mencegah text wrap dalam badge */
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: inline-block;
    text-align: center;
}

/* Hover effect untuk badge */
.facility-badge:hover {
    background-color: #bbdefb;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .facilities-container {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .facility-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Jika container parent overflow */
.room-card .facilities-container {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

/* Custom scrollbar untuk webkit browsers */
.facilities-container::-webkit-scrollbar {
    height: 4px;
}

.facilities-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.facilities-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

/* Dashboard Themes untuk berbagai role */

/* ===========================================
   ADMIN THEME - BIRU PASTEL
   =========================================== */
.admin-theme {
  --primary-color: #87ceeb;
  --secondary-color: #b0e0e6;
  --accent-color: #4682b4;
  --bg-gradient: linear-gradient(135deg, #e6f3ff, #b3d9ff);
  --card-bg: rgba(176, 224, 230, 0.1);
  --border-color: #87ceeb;
}

.admin-theme .navbar {
  background: linear-gradient(135deg, #87ceeb, #4682b4) !important;
}

.admin-theme .card-header.bg-primary {
  background: linear-gradient(135deg, #87ceeb, #4682b4) !important;
}

.admin-theme .btn-primary {
  background: linear-gradient(135deg, #87ceeb, #4682b4);
  border-color: #4682b4;
}

.admin-theme .sidebar-admin {
  background: var(--bg-gradient);
  border: 1px solid var(--border-color);
}

.admin-theme .list-group-item {
  background: linear-gradient(135deg, #87ceeb, #4682b4);
  border-color: #4682b4;
}

.admin-theme .list-group-item.active {
  background: linear-gradient(135deg, #76aedb, #87ceeb);
  border-color: #87ceeb;
}
/* Accordion styling */
.accordion-button:not(.collapsed) {
    background-color: #e3f2fd;
    color: #1976d2;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

/* Building tabs */
.nav-tabs .nav-link.active {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
}

.nav-tabs .nav-link:hover {
    background-color: #e3f2fd;
    border-color: #1976d2;
}

/* Room cards in grouped view */
.room-card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room-card:hover {
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}
/*room lock css*/
.room-locked {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
    color: white !important;
}

.room-locked::before {
    content: "🔒 ";
}

.lock-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-month-cell.locked {
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
    border-left: 4px solid #f44336 !important;
}
/* ===========================================
   CS THEME - MAGENTA PASTEL
   =========================================== */
.cs-theme {
  --primary-color: #dda0dd;
  --secondary-color: #e6b8e6;
  --accent-color: #ba55d3;
  --bg-gradient: linear-gradient(135deg, #f5e6ff, #e6b8e6);
  --card-bg: rgba(221, 160, 221, 0.1);
  --border-color: #dda0dd;
}

.cs-theme .navbar {
  background: linear-gradient(135deg, #dda0dd, #ba55d3) !important;
}


.cs-theme .card-header.bg-primary {
  background: linear-gradient(135deg, #dda0dd, #ba55d3) !important;
}

.cs-theme .btn-primary {
  background: linear-gradient(135deg, #dda0dd, #ba55d3);
  border-color: #ba55d3;
}

.cs-theme .sidebar-cs {
  background: var(--bg-gradient);
  border: 1px solid var(--border-color);
}

/* ===========================================
   KEUANGAN THEME - MERAH PASTEL
   =========================================== */
.keuangan-theme {
    --primary-color: #dc143c;
    --primary-light: #f0a0a0;
    --primary-dark: #b8002f;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f1f3f4;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
}

/* Gradient Backgrounds */
.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
}

/* Feature Cards Animation */
.feature-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    background: white;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* Stats Grid Enhanced */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: transform 0.5s ease;
}

.stat-card:hover::before {
    transform: rotate(45deg) translate(10px, 10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.stat-card h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-card small {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Sections */
.cleanup-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.cleanup-section::before {
    content: '🧹';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

.restore-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.restore-section::before {
    content: '🔄';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.export-section {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(67, 233, 123, 0.3);
}

.export-section::before {
    content: '📊';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

/* Zone Styling */
.danger-zone {
    border: 3px dashed #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    position: relative;
    animation: pulse-danger 3s infinite;
}

.danger-zone::before {
    content: '⚠️';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 3rem;
    opacity: 0.3;
    animation: bounce 2s infinite;
}

@keyframes pulse-danger {
    0% { border-color: #dc3545; background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%); }
    50% { border-color: #ff1744; background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); }
    100% { border-color: #dc3545; background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.safe-zone {
    border: 3px dashed #28a745;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    position: relative;
}

.safe-zone::before {
    content: '✅';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 3rem;
    opacity: 0.3;
}

/* Preview Table Enhanced */
.preview-table {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    background: white;
}

.preview-table::-webkit-scrollbar {
    width: 8px;
}

.preview-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.preview-table::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.preview-table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.preview-table table {
    margin-bottom: 0;
}

.preview-table .table > :not(caption) > * > * {
    padding: 0.75rem 0.5rem;
    border-bottom-width: 1px;
}

.preview-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Time Display Enhanced */
.time-display-24h {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 600;
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    border: 1px solid #2196f3;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
    color: #1976d2;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

/* Enhanced Buttons */
.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-danger.btn-lg {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-danger.btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-danger.btn-lg:hover::before {
    left: 100%;
}

.btn-success.btn-lg {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-info.btn-lg {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    border: none;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #dee2e6;
    padding: 20px 25px;
}

/* Enhanced Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

/* Badge Enhancements */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading States */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-card h4 {
        font-size: 2rem;
    }
    
    .cleanup-section,
    .restore-section,
    .export-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .danger-zone,
    .safe-zone {
        padding: 20px;
        margin: 20px 0;
    }
    
    .feature-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .preview-table {
        max-height: 300px;
    }
    
    .time-display-24h {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .cleanup-section::before,
    .restore-section::before,
    .export-section::before {
        font-size: 6rem;
        top: -10px;
        right: -10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .feature-card {
        background: #2d3748;
        color: white;
    }
    
    .preview-table {
        background: #2d3748;
    }
    
    .form-control,
    .form-select {
        background-color: #2d3748;
        border-color: #4a5568;
        color: white;
    }
    
    .form-control:focus,
    .form-select:focus {
        background-color: #2d3748;
        border-color: #63b3ed;
        color: white;
    }
}

/* Success Animation */
@keyframes success-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.success-animation {
    animation: success-pulse 2s infinite;
}

/* Error Animation */
@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-animation {
    animation: error-shake 0.5s ease-in-out;
}

/* Countdown Animation */
.countdown-button {
    position: relative;
    overflow: hidden;
}

.countdown-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: countdown-progress 5s linear;
}

@keyframes countdown-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .cleanup-section,
    .restore-section,
    .export-section,
    .danger-zone {
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
    }
    
    .btn,
    .modal {
        display: none !important;
    }
    
    .preview-table {
        max-height: none;
        overflow: visible;
    }
}

/* ============================================================================
   LAYOUT & TYPOGRAPHY
   ============================================================================ */

.keuangan-theme .navbar {
  background: linear-gradient(135deg, #dc143c, #f0a0a0) !important;
}

.keuangan-header {
  background-color: white; /* warna background putih */
    outline: 1px solid #dc143c; /* garis outline hitam tebal 2px */
    outline-offset: 0; /* jarak outline dari elemen (bisa diatur + / -) */
    padding: 16px; /* jarak isi ke tepi */
    border-radius: 8px; /* opsional: sudut melengkung */
}

.keuangan-page-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.keuangan-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.sidebar-keuangan {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 2rem;
}

.keuangan-nav .list-group-item {
    border: none;
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
    transition: var(--transition);
    font-weight: 500;
}

.keuangan-nav .list-group-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(5px);
}

.keuangan-nav .list-group-item.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ============================================================================
   METRIC CARDS
   ============================================================================ */

.keuangan-stat-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.keuangan-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.keuangan-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.revenue-card::before {
    background: linear-gradient(90deg, var(--success-color), #90ee90);
}

.profit-card::before {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.booking-card::before {
    background: linear-gradient(90deg, var(--info-color), #87ceeb);
}

.occupancy-card::before {
    background: linear-gradient(90deg, var(--warning-color), #ffeb3b);
}

.keuangan-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.revenue-icon {
    background: linear-gradient(135deg, var(--success-color), #90ee90);
}

.profit-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.booking-icon {
    background: linear-gradient(135deg, var(--info-color), #87ceeb);
}

.occupancy-icon {
    background: linear-gradient(135deg, var(--warning-color), #ffeb3b);
}

.keuangan-metric {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.keuangan-growth {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* ============================================================================
   SUMMARY CARDS
   ============================================================================ */

.keuangan-summary-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
}

.keuangan-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.keuangan-summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.pending-card .keuangan-summary-icon {
    background: linear-gradient(135deg, var(--warning-color), #ffeb3b);
}

.total-expense-card .keuangan-summary-icon {
    background: linear-gradient(135deg, var(--danger-color), #ff6b6b);
}

.category-card .keuangan-summary-icon {
    background: linear-gradient(135deg, var(--info-color), #87ceeb);
}

.avg-expense-card .keuangan-summary-icon {
    background: linear-gradient(135deg, var(--success-color), #90ee90);
}

.keuangan-summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.keuangan-summary-label {
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0;
}

/* ============================================================================
   CHART CARDS
   ============================================================================ */

.keuangan-chart-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 450px;
}

.keuangan-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-bottom: none;
    color: var(--white);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keuangan-chart-card .card-body {
    padding: 1.5rem;
    background: var(--white);
}

/* ============================================================================
   TABLE CARDS
   ============================================================================ */

.keuangan-table-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.keuangan-table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.keuangan-table th {
    background-color: var(--gray-100);
    border-top: none;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    padding: 1rem 0.75rem;
}

.keuangan-table td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.keuangan-table tbody tr:hover {
    background-color: var(--gray-100);
    transition: var(--transition);
}

/* ============================================================================
   PROGRESS BARS
   ============================================================================ */

.keuangan-progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-200);
    overflow: hidden;
}

.keuangan-progress .progress-bar {
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.6s ease;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-keuangan {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-keuangan:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--white);
}

.btn-keuangan:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

/* ============================================================================
   BADGES & STATUS INDICATORS
   ============================================================================ */

.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ============================================================================
   ROOM CARDS
   ============================================================================ */

.keuangan-room-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.keuangan-room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.room-rank-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.75rem;
}

.room-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.room-name {
    color: var(--gray-800);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.room-stats {
    margin: 1rem 0;
}

.stat-item {
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.stat-label {
    display: block;
    color: var(--gray-600);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   YTD CARDS
   ============================================================================ */

.keuangan-ytd-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.keuangan-ytd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.revenue-ytd::before {
    background: linear-gradient(90deg, var(--success-color), #90ee90);
}

.expense-ytd::before {
    background: linear-gradient(90deg, var(--danger-color), #ff6b6b);
}

.profit-ytd::before {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.avg-ytd::before {
    background: linear-gradient(90deg, var(--info-color), #87ceeb);
}

.ytd-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.ytd-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ytd-label {
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* ============================================================================
   ACTION CARDS
   ============================================================================ */

.keuangan-action-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.keuangan-action-card .btn-block {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
}

/* ============================================================================
   SUMMARY DETAIL CARDS
   ============================================================================ */

.keuangan-summary-detail-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.keuangan-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.keuangan-summary-item:last-child {
    border-bottom: none;
}

.label {
    color: var(--gray-600);
    font-weight: 500;
}

.value {
    font-weight: 700;
    color: var(--gray-800);
}

/* ============================================================================
   TEMPLATE CARDS
   ============================================================================ */

.keuangan-template-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.report-template {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.report-template:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.template-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.report-template h6 {
    color: var(--gray-800);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.report-template p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ============================================================================
   STATEMENT CARDS
   ============================================================================ */

.keuangan-statement-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.statement-section {
    margin-bottom: 2rem;
}

.statement-header {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid currentColor;
}

.statement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.statement-item.total {
    border-bottom: 2px solid var(--gray-800);
    font-weight: 700;
    background-color: var(--gray-100);
    padding: 1rem;
    margin: 0 -1rem;
    border-radius: var(--border-radius);
}

.statement-item.net-profit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 1rem;
    margin: 0 -1rem;
    border-radius: var(--border-radius);
    border-bottom: none;
}

.item-label {
    color: var(--gray-700);
}

.item-value {
    font-weight: 600;
    color: var(--gray-800);
}

/* ============================================================================
   RECOMMENDATION CARDS
   ============================================================================ */

.keuangan-recommendation-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.recommendation-item {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.recommendation-item:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   ANALYSIS CARDS
   ============================================================================ */

.keuangan-analysis-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-label {
    color: var(--gray-600);
    font-weight: 500;
}

.analysis-value {
    font-weight: 700;
    color: var(--gray-800);
}

.analysis-percent {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-left: 0.5rem;
}

/* ============================================================================
   EXPENSE CATEGORY ITEMS
   ============================================================================ */

.expense-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.expense-category-item:last-child {
    border-bottom: none;
}

.category-info {
    display: flex;
    align-items: center;
}

.category-name {
    font-weight: 600;
    color: var(--gray-800);
}

.category-amount {
    text-align: right;
}

.amount {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
}

.count {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================================================
   CATEGORY BADGES
   ============================================================================ */

.category-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
}

.expense-date {
    font-weight: 600;
    color: var(--gray-800);
}

.expense-amount {
    font-weight: 700;
}

/* ============================================================================
   ACTION BUTTONS
   ============================================================================ */

.action-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    border: none;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ============================================================================
   REPORT CARDS
   ============================================================================ */

.keuangan-report-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
}

/* ============================================================================
   METRIC CARDS (Additional)
   ============================================================================ */

.keuangan-metric-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.keuangan-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.keuangan-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.profit-metric::before {
    background: linear-gradient(90deg, var(--success-color), #90ee90);
}

.roi-metric::before {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.breakeven-metric::before {
    background: linear-gradient(90deg, var(--warning-color), #ffeb3b);
}

.efficiency-metric::before {
    background: linear-gradient(90deg, var(--info-color), #87ceeb);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.metric-detail {
    color: var(--gray-500);
    font-size: 0.75rem;
}

/* ============================================================================
   ADDON CARDS
   ============================================================================ */

.addon-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    background: var(--white);
    transition: var(--transition);
    position: relative;
}

.addon-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.addon-card.inactive {
    background: var(--gray-100);
    opacity: 0.7;
}

.price-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 0.5rem 0;
}

.usage-stats {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.summary-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1200px) {
    .keuangan-metric {
        font-size: 1.5rem;
    }
    
    .summary-number {
        font-size: 2rem;
    }
    
    .ytd-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 992px) {
    .sidebar-keuangan {
        position: relative;
        margin-bottom: 2rem;
    }
    
    .keuangan-chart-card {
        min-height: 350px;
    }
    
    .room-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .keuangan-stat-card,
    .keuangan-summary-card,
    .keuangan-ytd-card,
    .keuangan-room-card {
        margin-bottom: 1rem;
    }
    
    .keuangan-metric {
        font-size: 1.25rem;
    }
    
    .summary-number {
        font-size: 1.5rem;
    }
    
    .ytd-value {
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .keuangan-chart-card {
        min-height: 300px;
    }
    
    canvas {
        max-height: 250px !important;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }
    
    .statement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .analysis-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .expense-category-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .keuangan-page-title {
        font-size: 1.5rem;
    }
    
    .keuangan-metric {
        font-size: 1rem;
    }
    
    .summary-number {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .addon-card,
    .report-template,
    .recommendation-item {
        padding: 1rem;
    }
    
    .room-rank-badge {
        position: static;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .btn-keuangan {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--border-radius-lg);
}

.loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .sidebar-keuangan,
    .btn,
    .action-buttons,
    .header-actions {
        display: none !important;
    }
    
    .keuangan-stat-card,
    .keuangan-chart-card,
    .keuangan-table-card {
        box-shadow: none !important;
        border: 1px solid var(--gray-300) !important;
        break-inside: avoid;
    }
    
    .keuangan-page-title {
        color: var(--gray-800) !important;
    }
    
    body {
        background: var(--white) !important;
    }
}

/* ============================================================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================================================ */

.keuangan-stat-card:focus,
.keuangan-room-card:focus,
.report-template:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-keuangan:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure sufficient contrast */
.text-muted {
    color: var(--gray-600) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #b8002f;
        --gray-600: #4a4a4a;
        --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    }
    
    .keuangan-stat-card,
    .keuangan-chart-card,
    .keuangan-table-card {
        border: 2px solid var(--gray-800);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}keuangan-nav .list-group-item.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
/* ===========================================
   SIDEBAR STYLES
   =========================================== */
.dashboard-sidebar {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.dashboard-sidebar .list-group-item {
  border: none;
  background: transparent;
  transition: all 0.3s ease;
  margin: 2px 0;
  border-radius: 8px;
}

.dashboard-sidebar .list-group-item:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(5px);
}

.dashboard-sidebar .list-group-item.active {
  background: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

/* ===========================================
   DASHBOARD CARDS
   =========================================== */
.dashboard-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: 15px;
}

/* ===========================================
   ADD-ON FACILITY STYLES
   =========================================== */
.addon-facility {
  border: 2px dashed #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 10px 0;
  transition: all 0.3s ease;
}

.addon-facility:hover {
  border-color: var(--primary-color);
  background: var(--card-bg);
}

.addon-facility.selected {
  border-color: var(--accent-color);
  background: var(--card-bg);
  border-style: solid;
}

.facility-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
}

.total-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
  padding: 15px;
  background: var(--card-bg);
  border-radius: 10px;
  border: 2px solid var(--border-color);
}

/* ===========================================
   SCHEDULE CHANGE FORM
   =========================================== */
.schedule-change-form {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
}

.old-schedule {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  border-radius: 8px;
  padding: 15px;
}

.new-schedule {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  border-radius: 8px;
  padding: 15px;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 768px) {
  .dashboard-sidebar {
    margin-bottom: 15px;
  }

  .stat-card {
    margin-bottom: 15px;
  }

  .addon-facility {
    padding: 15px;
  }

  .schedule-change-form {
    padding: 20px;
    margin: 15px 0;
  }
}

/* ===========================================
   ANIMATION UTILITIES
   =========================================== */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===========================================
   NOTIFICATION STYLES
   =========================================== */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.urgent-request {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* ===========================================
   QUICK SEARCH BAR
   =========================================== */
.navbar .form-control-sm {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.8rem;
}

.navbar .form-control-sm::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.navbar .form-control-sm:focus {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-color: white;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.8rem;
  padding: 4px 8px;
}

.navbar .btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

/* ===========================================
   Z-INDEX MANAGEMENT
   =========================================== */
.modal {
  z-index: 1055;
}

.modal-backdrop {
  z-index: 1050;
}

.alert.fixed-top {
  z-index: 1070;
  top: 80px;
}

.floating-notification {
  z-index: 1065 !important;
  position: fixed !important;
  top: 80px !important;
  right: 20px !important;
}

.tooltip {
  z-index: 1070;
}

.popover {
  z-index: 1070;
}

/* ===========================================
   RESPONSIVE NAVBAR
   =========================================== */
@media (max-width: 991.98px) {
  body {
    padding-top: 56px;
  }

  .navbar .dropdown-menu.show {
    position: fixed !important;
    top: 60px !important;
    right: 15px !important;
    left: auto !important;
    max-width: calc(100vw - 30px);
    transform: none !important;
  }

  .navbar-collapse {
    background: rgba(26, 115, 232, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
    margin-top: 8px;
    padding: 10px;
  }

  .alert.fixed-top {
    top: 60px;
    margin: 0 10px;
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 575px) {
  body {
    padding-top: 60px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar .dropdown-menu.show {
    right: 10px !important;
    max-width: calc(100vw - 20px);
  }
}

/* ===========================================
   MAIN CONTENT LAYOUT
   =========================================== */
.main-content,
.container-fluid {
  padding-left: 10px !important;
  padding-right: 10px !important;
  max-width: 1400px; /* Batasi lebar maksimal */
  margin: 0 auto; /* Center container */
}

/* Untuk desktop besar */
@media (min-width: 1200px) {
  .container-fluid {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* ===========================================
   CARD STYLES
   =========================================== */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  font-weight: 600;
  border-bottom: none;
}

/* Dropdown Position Fixes */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
    min-width: 160px;
    margin: 0 !important;
    transform: none !important;
}

/* Ensure dropdown stays close to button */
.dropdown {
    position: relative !important;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Fix for Bootstrap dropdown positioning issues */
.dropdown-menu[data-bs-popper] {
    top: 100% !important;
    left: 0 !important;
    margin-top: 0 !important;
}

/* User dropdown specific fixes */
.navbar .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    margin-top: 0 !important;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Profile dropdown positioning */
.dropdown-menu.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: absolute !important;
        width: auto !important;
        min-width: 200px !important;
    }
    
    .navbar .dropdown-menu {
        right: 0 !important;
        left: auto !important;
        margin-top: 0.125rem !important;
    }
}

/* Additional fixes for specific dropdowns */
.btn-group .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 0.125rem !important;
}

/* Ensure dropdown appears above other content */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Smooth dropdown animation */
.dropdown-menu {
    transition: all 0.15s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Fix for any positioning conflicts */
.navbar-nav .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 0.125rem) !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ===========================================
   MINI CALENDAR STYLES
   =========================================== */
.mini-calendar-day {
  cursor: pointer;
  transition: all 0.2s ease;
  height: 32px;
  width: 32px;
  font-weight: 500;
}

.mini-calendar-day:hover {
  background-color: #e9ecef;
}

.mini-calendar-day.today {
  background-color: #e8f0fe;
  color: var(--primary-color);
  font-weight: bold;
}

.mini-calendar-day.selected {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
}

.mini-calendar-day.has-bookings {
  position: relative;
}

.mini-calendar-day.has-bookings::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.mini-calendar-day.holiday {
  background-color: #ffebee;
  color: var(--danger-color);
}

/* Weekend styling */
.mini-calendar-day.weekend {
  color: var(--danger-color) !important;
}

.mini-calendar-day.weekend.selected {
  background-color: var(--primary-color);
  color: white !important;
}

.mini-calendar-day.out-of-range.weekend {
  color: var(--danger-color) !important;
  opacity: 0.5;
}

.mini-calendar-day.out-of-range {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
  color: #6c757d;
}

.mini-calendar-day.out-of-range.today {
  opacity: 0.7;
  text-decoration: none;
  color: var(--primary-color);
  background-color: #e8f0fe;
}

/* Calendar headers */
.table.mini-calendar thead th:nth-child(6), /* Sabtu */
.table.mini-calendar thead th:nth-child(7) {
  /* Minggu */
  color: var(--danger-color) !important;
}

.table.month-calendar thead th:nth-child(1), /* Minggu di month view */
.table.month-calendar thead th:nth-child(7) {
  /* Sabtu di month view */
  color: var(--danger-color) !important;
}

/* ===========================================
   ADMIN DASHBOARD TABLE FIXES
   =========================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  min-width: 1000px;
  margin-bottom: 0;
  background: white;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th,
.admin-table td {
  padding: 12px 8px;
  vertical-align: middle;
  border: 1px solid #dee2e6;
  word-wrap: break-word;
  overflow: hidden;
}

.admin-table th {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  font-weight: 600;
  color: #495057;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Column specifications */
.col-no {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  text-align: center;
}

.col-nama {
  width: 250px;
  min-width: 200px;
  max-width: 300px;
}

.col-ruangan {
  width: 120px;
  min-width: 100px;
  max-width: 150px;
}

.col-tanggal {
  width: 160px;
  min-width: 140px;
  max-width: 180px;
}

.col-peminjam {
  width: 200px;
  min-width: 150px;
  max-width: 250px;
}

.col-status {
  width: 120px;
  min-width: 100px;
  max-width: 140px;
  text-align: center;
}

.col-aksi {
  width: 180px;
  min-width: 160px;
  max-width: 200px;
  text-align: center;
}

/* ===========================================
   CELL CONTENT STYLING
   =========================================== */
.data-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.data-cell-multiline {
  max-height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.nama-acara-cell {
  font-weight: 600;
  color: #2c3e50;
}

.nama-acara-cell small {
  color: #6c757d;
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.tanggal-cell {
  font-size: 0.9rem;
  line-height: 1.3;
}

.tanggal-cell .date {
  font-weight: 600;
  color: #495057;
}

.tanggal-cell .time {
  color: #6c757d;
  font-size: 0.8rem;
}

/* ===========================================
   MODAL IMPROVEMENTS
   =========================================== */
.modal-lg {
  max-width: 95%;
  width: 900px;
}

.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  padding: 20px 25px;
}

.modal-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 15px 25px;
}

.info-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-card h6 {
  color: #495057;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: #6c757d;
  min-width: 140px;
  flex-shrink: 0;
}

.info-value {
  color: #495057;
  text-align: right;
  flex-grow: 1;
  word-break: break-word;
}

/* ===========================================
   BUTTONS AND BADGES
   =========================================== */
.btn {
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5cad;
  border-color: #0b5cad;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-danger:hover {
  background-color: #c62828;
  border-color: #c62828;
}

.status-badge {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-buttons {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-action {
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
  margin: 1px;
  min-width: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action i {
  font-size: 0.8rem;
}

.badge {
  padding: 5px 8px;
  font-weight: 500;
  border-radius: 4px;
}

/* ===========================================
   ACTIVE BOOKING STYLES
   =========================================== */
.active-booking {
  background-color: #f8d7da !important;
  border-left: 5px solid #dc3545 !important;
  animation: activePulse 2s infinite;
}

.active-booking .booking-info {
  border: 2px solid #dc3545;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5f5, #ffe6e6);
  padding: 12px;
}

@keyframes activePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.8);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.blink-badge {
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

.checkout-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  animation: checkoutGlow 2s infinite alternate;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

@keyframes checkoutGlow {
  0% {
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  }
  100% {
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.6);
  }
}

.active-booking::before {
  content: '🔴';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  animation: blink 1s infinite;
}

/* ===========================================
   NEWLY AVAILABLE SLOTS
   =========================================== */
.newly-available {
  background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
  border-left: 5px solid #28a745 !important;
  animation: newlyAvailablePulse 3s infinite;
  position: relative;
}

.newly-available::before {
  content: '🆕';
  position: absolute;
  left: 5px;
  top: 5px;
  font-size: 14px;
  animation: bounce 1s infinite;
}

@keyframes newlyAvailablePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.8);
    background-color: #d4edda;
  }
  50% {
    box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
    background-color: #b3d7ba;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    background-color: #d4edda;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.newly-available .book-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  animation: buttonGlow 2s infinite alternate;
  position: relative;
  overflow: hidden;
}

@keyframes buttonGlow {
  0% {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  }
  100% {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.8);
  }
}

/* ===========================================
   NOTIFICATION STYLES
   =========================================== */
.floating-notification {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.floating-notification.alert-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(32, 201, 151, 0.95));
  color: white;
  border-left: 5px solid #fff;
}

.floating-notification.alert-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.95), rgba(108, 117, 125, 0.95));
  color: white;
  border-left: 5px solid #fff;
}

.alert-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.success-notification {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 15px;
  animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===========================================
   FORM CONTROLS
   =========================================== */
.form-control,
.form-select {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 10px 12px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

/* ===========================================
   CALENDAR AND TIME SLOT STYLES
   =========================================== */
.time-slot {
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot:hover {
  background-color: #f8f9fa;
}

.time-slot td:first-child {
  font-weight: 500;
  color: var(--dark-color);
}

.booking-info {
  padding: 8px;
}

.book-btn {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.time-slot:hover .book-btn {
  opacity: 1;
}

.available-slot {
  transition: all 0.3s ease;
}

.available-slot:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   ROOM STYLING
   =========================================== */
.room-badge {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9rem;
}

.room-info-card .card-body {
  padding: 1.25rem;
}

.room-info-card .icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f1f8ff;
  margin-right: 15px;
}

.room-number-column {
  font-weight: 500;
}

/* ===========================================
   LOADING AND UTILITY STYLES
   =========================================== */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   SCROLLBAR CUSTOMIZATION
   =========================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (min-width: 1200px) {
  .admin-table {
    min-width: 1200px;
  }

  .col-nama {
    width: 300px;
  }
  .col-peminjam {
    width: 250px;
  }
  .col-aksi {
    width: 200px;
  }
}

@media (max-width: 1199px) {
  .main-content-wrapper {
    padding: 10px;
  }

  .admin-table {
    min-width: 900px;
    font-size: 0.85rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 6px;
  }

  .btn-action {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

@media (max-width: 767px) {
  .main-content-wrapper {
    padding: 8px;
  }

  .admin-table {
    min-width: 800px;
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 6px 4px;
  }

  .col-nama {
    width: 180px;
  }
  .col-peminjam {
    width: 150px;
  }
  .col-aksi {
    width: 140px;
  }

  .btn-action {
    padding: 3px 6px;
    font-size: 0.65rem;
    min-width: 30px;
  }

  .modal-lg {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .modal-body {
    padding: 15px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .info-label {
    min-width: auto;
    font-size: 0.9rem;
  }

  .info-value {
    text-align: left;
    font-size: 0.9rem;
  }

  .mini-calendar-day {
    height: 28px;
    width: 28px;
    font-size: 0.85rem;
  }

  .card-header h5 {
    font-size: 1rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .floating-notification {
    right: 10px !important;
    left: 10px !important;
    max-width: none !important;
  }

  .newly-available .book-btn {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .checkout-btn {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}

@media (max-width: 575px) {
  .admin-table {
    min-width: 700px;
    font-size: 0.75rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 4px 3px;
  }
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
  background-color: var(--light-color);
  color: var(--gray-color);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

/* ===========================================
   FOCUS STYLES FOR ACCESSIBILITY
   =========================================== */
.nav-link:focus,
.dropdown-toggle:focus,
.btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
  .btn,
  .pagination,
  .modal,
  .navbar {
    display: none !important;
  }

  body {
    padding-top: 0 !important;
  }

  .table-responsive {
    overflow: visible !important;
  }

  .admin-table {
    min-width: auto !important;
    font-size: 10pt;
  }

  .admin-table th,
  .admin-table td {
    padding: 4px !important;
    font-size: 9pt;
  }
}
/* ===========================================
   MOBILE RESPONSIVE OPTIMIZATION
   Untuk Website Booking Room
   =========================================== */

/* Base Mobile Adjustments */
@media (max-width: 768px) {
    
    /* ===== GENERAL LAYOUT ===== */
    body {
        font-size: 13px; /* Reduced from 14px */
        line-height: 1.4;
        padding-top: 60px; /* Reduced navbar height */
    }
    
    .container-fluid {
        padding: 0 8px; /* Reduced from 15px */
    }
    
    /* ===== NAVBAR MOBILE ===== */
    .navbar {
        padding: 8px 12px; /* Reduced padding */
        min-height: 50px;
    }
    
    .navbar-brand {
        font-size: 1.1rem; /* Reduced from 1.5rem */
        padding: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 6px 10px; /* Reduced from 8px 12px */
        font-size: 0.8rem;
    }
    
    .navbar .btn {
        padding: 4px 8px; /* Reduced button padding */
        font-size: 0.75rem;
    }
    
    /* ===== CARDS ===== */
    .card {
        margin-bottom: 10px; /* Reduced from 20px */
    }
    
    .card-header {
        padding: 10px 12px; /* Reduced from 20px */
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 12px; /* Reduced from 20px */
    }
    
    .card-footer {
        padding: 8px 12px;
    }
    
    /* ===== MINI CALENDAR MOBILE ===== */
    .mini-calendar {
        font-size: 0.65rem; /* Much smaller text */
    }
    
    .mini-calendar th, 
    .mini-calendar td {
        padding: 2px 1px !important; /* Very compact */
        height: 22px; /* Reduced height */
        width: 14.28% !important;
        font-size: 0.6rem;
    }
    
    .mini-calendar th {
        font-size: 0.55rem;
        font-weight: 600;
    }
    
    .mini-calendar-day {
        height: 20px;
        width: 20px;
        font-size: 0.6rem;
        line-height: 1;
    }
    
    /* Calendar navigation buttons */
    .card-header .btn {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    /* ===== ROOM INFORMATION CARD ===== */
    .room-info-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .room-info-card .bg-light {
        margin-bottom: 8px;
        padding: 15px;
    }
    
    .room-info-card h4 {
        font-size: 1rem; /* Reduced from larger size */
        margin-bottom: 3px;
    }
    
    .room-info-card p {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .room-info-card .row .col-sm-6 {
        margin-bottom: 6px;
    }
    .info-card {
      text-align: center !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
      align-items: center !important;
  }
    
    /* ===== FACILITY BADGES ===== */
    .facility-badge {
        padding: 2px 6px; /* Reduced from 6px 12px */
        font-size: 0.6rem; /* Much smaller */
        margin: 1px;
        border-radius: 8px;
    }
    
    .facilities-container {
        gap: 3px;
        margin-top: 6px;
    }
    
    /* ===== BOOKING MODE SELECTOR ===== */
    .btn-group .btn {
        font-size: 0.7rem; /* Reduced text */
        padding: 6px 10px;
    }
    
    .btn-group .btn i {
        font-size: 0.7rem;
        margin-right: 3px;
    }
    
    /* ===== FORM CONTROLS ===== */
    .form-select,
    .form-control {
        font-size: 0.8rem; /* Reduced from 0.9rem */
        padding: 6px 10px; /* Reduced padding */
        height: auto;
    }
    
    .form-label {
        font-size: 0.75rem; /* Smaller labels */
        font-weight: 600;
        margin-bottom: 3px;
    }
    
    /* ===== ALERTS ===== */
    .alert {
        padding: 8px 10px; /* Reduced padding */
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    
    .alert i {
        font-size: 0.8rem;
    }
    
    /* ===== MAIN CALENDAR HEADER ===== */
    .col-md-9 .card-header h4 {
        font-size: 0.95rem; /* Much smaller title */
        text-align: center;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    /* View selector buttons */
    .btn-group.w-100 .btn {
        padding: 5px 8px;
        font-size: 0.7rem;
        flex: 1;
    }
    
    /* ===== DAY VIEW TABLE ===== */
    .table {
        font-size: 0.7rem; /* Smaller table text */
        margin-bottom: 0;
    }
    
    .table th {
        padding: 6px 4px;
        font-size: 0.65rem;
        font-weight: 600;
    }
    
    .table td {
        padding: 6px 4px;
        vertical-align: top;
    }
    
    /* Time column */
    .table th:first-child,
    .table td:first-child {
        width: 70px; /* Narrower time column */
        font-size: 0.6rem;
        font-weight: bold;
    }
    
    /* ===== BOOKING INFO IN TIME SLOTS ===== */
    .booking-info {
        padding: 6px !important;
    }
    
    .booking-info h6 {
        font-size: 0.75rem; /* Smaller event title */
        margin-bottom: 3px;
        line-height: 1.2;
    }
    
    .booking-info p {
        font-size: 0.65rem; /* Smaller details */
        margin-bottom: 2px;
        line-height: 1.1;
    }
    
    .booking-info .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .booking-info .text-end {
        text-align: left !important;
        margin-top: 5px;
        width: 100%;
    }
    
    /* ===== STATUS BADGES ===== */
    .badge {
        font-size: 0.6rem !important; /* Much smaller badges */
        padding: 2px 5px;
        border-radius: 2px;
    }
    
    .booking-info .badge {
        font-size: 0.55rem !important;
        padding: 2px 4px;
    }
    
    /* ===== ACTION BUTTONS ===== */
    .booking-info .btn {
        font-size: 0.6rem;
        padding: 3px 6px;
        margin: 1px;
        min-width: 50px;
    }
    
    .booking-info .mt-2 {
        margin-top: 5px !important;
    }
    
    .action-buttons {
        gap: 2px;
    }
    
    .btn-action {
        padding: 3px 5px;
        font-size: 0.6rem;
        min-width: 28px;
    }
    
    /* ===== BOOK BUTTON ===== */
    .book-btn {
        font-size: 0.7rem;
        padding: 6px 12px;
        width: 100%;
    }
    
    /* ===== WEEK VIEW ===== */
    .table.week-view th {
        font-size: 0.6rem;
        padding: 4px 2px;
        text-align: center;
    }
    
    .table.week-view td {
        font-size: 0.6rem;
        padding: 4px 2px;
        text-align: center;
    }
    
    /* ===== MONTH VIEW ===== */
    .calendar-month-cell {
        height: 65px !important; /* Reduced height */
        padding: 2px !important;
        font-size: 0.6rem;
    }
    
    .calendar-month-day {
        font-weight: 600;
        margin-bottom: 2px;
        font-size: 0.7rem;
        padding-bottom: 1px;
    }
    
    .calendar-month-events {
        font-size: 0.5rem; /* Very small event text */
        overflow: hidden;
        max-height: 40px;
    }
    
    .calendar-month-event {
        margin-bottom: 1px;
        padding: 1px 2px;
        border-radius: 2px;
        font-size: 0.45rem; /* Extra small */
        line-height: 1.1;
    }
    
    
    /* ===== MODALS ===== */
    .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .modal-header {
        padding: 10px 12px;
    }
    
    .modal-header h5 {
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .modal-footer {
        padding: 8px 12px;
    }
    
    /* Modal buttons */
    .modal .btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    /* ===== DROPDOWN MENUS ===== */
    .dropdown-menu {
        font-size: 0.75rem;
        min-width: 160px;
    }
    
    .dropdown-item {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    /* ===== FLOATING ALERTS ===== */
    .alert.position-fixed {
        top: 60px !important; /* Below smaller navbar */
        right: 5px !important;
        left: 5px !important;
        max-width: calc(100% - 10px) !important;
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .alert .d-flex {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .alert i {
        font-size: 1rem !important;
        margin-right: 8px !important;
        margin-bottom: 0 !important;
    }
}

/* ===== SMALL MOBILE (< 576px) ===== */
@media (max-width: 576px) {
    
    body {
        font-size: 12px; /* Even smaller base font */
    }
    
    .container-fluid {
        padding: 0 5px;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Cards */
    .card-header {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .card-body {
        padding: 10px;
    }
    
    /* Mini calendar */
    .mini-calendar {
        font-size: 0.6rem;
    }
    
    .mini-calendar th, 
    .mini-calendar td {
        height: 18px;
        padding: 1px !important;
        font-size: 0.55rem;
    }
    
    /* Room info */
    .room-info-card h4 {
        font-size: 0.9rem;
    }
    
    .room-info-card p {
        font-size: 0.75rem;
    }
    
    /* Facility badges */
    .facility-badge {
        padding: 1px 4px;
        font-size: 0.55rem;
    }
    
    /* Form controls */
    .form-select,
    .form-control {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    .form-label {
        font-size: 0.7rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .btn-group .btn {
        font-size: 0.65rem;
        padding: 5px 8px;
    }
    
    /* Table */
    .table {
        font-size: 0.65rem;
    }
    
    .table th,
    .table td {
        padding: 4px 3px;
    }
    
    /* Booking info */
    .booking-info h6 {
        font-size: 0.7rem;
    }
    
    .booking-info p {
        font-size: 0.6rem;
    }
    
    .booking-info .btn {
        font-size: 0.55rem;
        padding: 2px 4px;
        min-width: 40px;
    }
    
    /* Badges */
    .badge {
        font-size: 0.55rem !important;
        padding: 1px 3px;
    }
    
    /* Month view */
    .calendar-month-cell {
        height: 50px !important;
        font-size: 0.55rem;
    }
    
    .calendar-month-event {
        font-size: 0.4rem;
    }
    
    /* Alerts */
    .alert {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
}

/* ===== EXTRA SMALL MOBILE (< 480px) ===== */
@media (max-width: 480px) {
    
    body {
        font-size: 11px; /* Smallest base font */
    }
    
    /* Navbar */
    .navbar {
        padding: 6px 8px;
        min-height: 45px;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .card-header {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 8px;
    }
    
    /* Mini calendar */
    .mini-calendar th, 
    .mini-calendar td {
        height: 16px;
        font-size: 0.5rem;
    }
    
    /* Time column */
    .table th:first-child,
    .table td:first-child {
        width: 60px;
        font-size: 0.55rem;
    }
    
    /* Month view */
    .calendar-month-cell {
        height: 45px !important;
    }
    
    .calendar-month-day {
        font-size: 0.65rem;
    }
    
    .calendar-month-event {
        font-size: 0.35rem;
        padding: 0 1px;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 3px;
        max-width: calc(100% - 6px);
    }
    
    .modal-header h5 {
        font-size: 0.85rem;
    }
    
    /* Buttons in tight spaces */
    .action-buttons .btn {
        padding: 2px 4px;
        font-size: 0.5rem;
        min-width: 25px;
    }
}

/* ===== LANDSCAPE MODE ADJUSTMENTS ===== */
@media (max-width: 768px) and (orientation: landscape) {
    
    /* Reduce heights for landscape */
    .calendar-month-cell {
        height: 45px !important;
    }
    
    .mini-calendar th, 
    .mini-calendar td {
        height: 16px;
    }
    
    .navbar {
        min-height: 40px;
    }
    
    body {
        padding-top: 45px;
    }
}

/* ===== UTILITY CLASSES FOR MOBILE ===== */
@media (max-width: 768px) {
    
    /* Text size utilities */
    .mobile-text-xs {
        font-size: 0.6rem !important;
    }
    
    .mobile-text-sm {
        font-size: 0.7rem !important;
    }
    
    .mobile-text-md {
        font-size: 0.8rem !important;
    }
    
    /* Spacing utilities */
    .mobile-p-1 {
        padding: 4px !important;
    }
    
    .mobile-p-2 {
        padding: 8px !important;
    }
    
    .mobile-m-1 {
        margin: 4px !important;
    }
    
    .mobile-mb-1 {
        margin-bottom: 4px !important;
    }
    
    .mobile-mb-2 {
        margin-bottom: 8px !important;
    }
    
    /* Button utilities */
    .btn-mobile-xs {
        font-size: 0.6rem !important;
        padding: 3px 6px !important;
    }
    
    .btn-mobile-sm {
        font-size: 0.7rem !important;
        padding: 5px 10px !important;
    }
    
    /* Hide elements on mobile */
    .d-mobile-none {
        display: none !important;
    }
    
    /* Show only on mobile */
    .d-mobile-block {
        display: block !important;
    }
    
    .d-mobile-flex {
        display: flex !important;
    }
}

/* ===========================================
   MOBILE MODAL BOOKING OPTIMIZATION
   Mengatasi masalah modal mepet dan ukuran content
   =========================================== */

/* ===== GENERAL MODAL MOBILE FIXES ===== */
@media (max-width: 768px) {
    
    /* Modal dialog - Beri margin yang cukup */
    .modal-dialog {
        margin: 15px !important; /* Increased margin */
        max-width: calc(100% - 30px) !important; /* Ensure space on sides */
        width: auto !important;
    }
    
    .modal-dialog.modal-xl,
    .modal-dialog.modal-lg {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    /* Modal content - Rounded corners dan spacing */
    .modal-content {
        border-radius: 12px !important;
        border: none !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
        overflow: hidden;
    }
    
    /* Modal header - Kompak tapi tidak cramped */
    .modal-header {
        padding: 12px 15px !important; /* Reduced but comfortable */
        border-bottom: 1px solid #e9ecef;
        position: relative;
    }
    
    .modal-header .modal-title {
        font-size: 0.95rem !important; /* Readable but smaller */
        font-weight: 600;
        line-height: 1.3;
        margin: 0;
        padding-right: 30px; /* Space for close button */
    }
    
    .modal-header .btn-close {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px;
        margin: 0;
    }
    
    /* Modal body - Scrollable dengan padding yang pas */
    .modal-body {
        padding: 15px !important; /* Comfortable padding */
        max-height: calc(100vh - 200px) !important; /* Prevent overflow */
        overflow-y: auto !important;
        font-size: 0.85rem; /* Smaller but readable */
        line-height: 1.4;
    }
    
    /* Modal footer - Kompak */
    .modal-footer {
        padding: 10px 15px !important;
        border-top: 1px solid #e9ecef;
        background-color: #f8f9fa;
    }
}

/* ===== BOOKING MODAL SPECIFIC FIXES ===== */
@media (max-width: 768px) {
    
    /* Booking modal header */
    #bookingModal .modal-header {
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
        padding: 12px 15px;
    }
    
    #bookingModal .modal-title {
        font-size: 0.9rem !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    #bookingModal .modal-title i {
        font-size: 1rem;
    }
    
    /* User profile section - Lebih kompak */
    #bookingModal .bg-light {
        padding: 12px !important;
        background: #f8f9fa !important;
    }
    
    #bookingModal .avatar-dosen {
        width: 35px !important;
        height: 35px !important;
        margin-bottom: 8px;
    }
    
    #bookingModal .bg-light h5 {
        font-size: 0.9rem !important;
        margin-bottom: 3px;
    }
    
    #bookingModal .bg-light .text-muted {
        font-size: 0.7rem !important;
        line-height: 1.2;
    }
    #bookingModal .d-flex.align-items-center {
      flex-direction: row !important; /* Horizontal layout */
      align-items: center !important;
      text-align: left !important;
    }
    
    /* Info cards - Lebih kompak */
    .info-card {
        padding: 10px !important;
        margin-bottom: 10px !important;
        border-radius: 8px;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef;
    }
    
    .info-card .info-icon {
        margin-bottom: 5px;
    }
    
    .info-card .info-icon i {
        font-size: 1.1rem;
    }
    
    .info-card .info-label {
        font-size: 0.65rem !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #6c757d;
        margin-bottom: 2px;
    }
    
    .info-card .info-value {
        font-size: 0.8rem !important;
        font-weight: 600;
        color: #495057;
        line-height: 1.2;
    }
    
    /* Form sections - Spacing yang pas */
    .form-section {
        margin-bottom: 15px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #e9ecef;
    }
    
    .form-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 0.85rem !important;
        font-weight: 600;
        color: #495057;
        margin-bottom: 8px !important;
        padding-bottom: 4px;
        border-bottom: 2px solid #e3f2fd;
    }
    
    .section-title i {
        font-size: 0.9rem;
        margin-right: 6px;
        color: #007bff;
    }
    
    /* Form controls - Ukuran yang pas */
    #bookingModal .form-control,
    #bookingModal .form-select {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
        border-radius: 6px;
        border: 1px solid #ced4da;
        height: auto !important;
    }
    
    #bookingModal .form-label {
        font-size: 0.75rem !important;
        font-weight: 600;
        margin-bottom: 4px !important;
        color: #495057;
    }
    
    /* Required indicator */
    #bookingModal .text-danger {
        font-size: 0.75rem;
    }
    
    /* Form text helper */
    #bookingModal .form-text {
        font-size: 0.65rem !important;
        margin-top: 3px;
        color: #6c757d;
    }
    
    /* Schedule radio container */
    .schedule-radio-container {
        max-height: 200px !important; /* Shorter height */
        padding: 8px !important;
        border-radius: 6px;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .schedule-radio-card {
        padding: 10px !important; /* Reduced padding */
        margin-bottom: 6px !important;
        border-radius: 8px;
        border: 1px solid #e9ecef;
        background: white;
    }
    
    .schedule-course-title {
        font-size: 0.8rem !important;
        font-weight: 600;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .schedule-course-details {
        gap: 8px !important;
        margin-bottom: 8px;
    }
    
    .schedule-detail-item {
        font-size: 0.7rem !important;
        color: #6c757d;
    }
    
    .schedule-detail-item i {
        font-size: 0.7rem;
        width: 12px;
        margin-right: 4px;
        color: #007bff;
    }
    
    .schedule-course-meta {
        padding-top: 6px;
        margin-top: 6px;
        border-top: 1px solid #e9ecef;
    }
    
    .schedule-program-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px;
        border-radius: 5px;
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
    }
    
    .schedule-students-count {
        font-size: 0.7rem !important;
        color: #28a745;
        font-weight: 600;
    }
    
    /* Alert messages */
    #bookingModal .alert {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
        margin-bottom: 10px !important;
        border-radius: 6px;
        line-height: 1.3;
    }
    
    #bookingModal .alert i {
        font-size: 0.8rem;
        margin-right: 6px;
    }
    
    /* Textarea */
    #bookingModal textarea {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
        resize: vertical;
        min-height: 60px !important; /* Smaller minimum height */
    }
    
    /* Duration display */
    #durationDisplay {
        font-size: 0.75rem !important;
        font-weight: 600;
        margin-top: 3px;
    }
    
    /* Modal footer buttons */
    #bookingModal .modal-footer {
        padding: 10px 15px !important;
        background: #f8f9fa;
    }
    
    #bookingModal .modal-footer .row {
        margin: 0;
        align-items: center;
    }
    
    #bookingModal .modal-footer .col-md-6 {
        padding: 0;
        margin-bottom: 8px;
    }
    
    #bookingModal .modal-footer .text-muted {
        font-size: 0.7rem !important;
        text-align: center;
    }
    
    #bookingModal .modal-footer .btn {
        font-size: 0.8rem !important;
        padding: 8px 16px !important;
        border-radius: 6px;
        font-weight: 600;
        width: 100%;
    }
    
    #bookingModal .btn-light {
        background: #e9ecef;
        border: 1px solid #ced4da;
        color: #495057;
    }
    
    #bookingModal .btn-success {
        background: linear-gradient(135deg, #28a745, #20c997);
        border: none;
        color: white;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
}

/* ===== EXTRA SMALL MOBILE ===== */
@media (max-width: 576px) {
    
    /* Modal spacing */
    .modal-dialog {
        margin: 8px !important;
        max-width: calc(100% - 16px) !important;
    }
    
    /* Modal content */
    .modal-body {
        padding: 12px !important;
        font-size: 0.8rem;
    }
    
    /* Booking modal specific */
    #bookingModal .modal-title {
        font-size: 0.85rem !important;
    }
    
    #bookingModal .bg-light {
        padding: 10px !important;
    }

    .badge.bg-warning {
        font-size: 0.59rem !important; /* Extra kecil */
        padding: 6px 10px !important;   /* Padding minimal */
    }
    
    .info-card {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .info-card .info-value {
        font-size: 0.75rem !important;
    }
    
    .section-title {
        font-size: 0.8rem !important;
    }
    
    #bookingModal .form-control,
    #bookingModal .form-select {
        font-size: 0.75rem !important;
        padding: 6px 8px !important;
    }
    
    #bookingModal .form-label {
        font-size: 0.7rem !important;
    }
    
    .schedule-radio-container {
        max-height: 180px !important;
    }
    
    .schedule-radio-card {
        padding: 8px !important;
    }
    
    .schedule-course-title {
        font-size: 0.75rem !important;
    }
    
    .schedule-detail-item {
        font-size: 0.65rem !important;
    }
    
    #bookingModal textarea {
        min-height: 50px !important;
    }
    
    #bookingModal .modal-footer .btn {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
}

/* ===== LANDSCAPE MODE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    
    .modal-body {
        max-height: calc(100vh - 160px) !important;
    }
    
    .schedule-radio-container {
        max-height: 120px !important;
    }
    
    #bookingModal textarea {
        min-height: 40px !important;
    }
}

/* ===== ACCESSIBILITY & UX IMPROVEMENTS ===== */
@media (max-width: 768px) {
    
    /* Touch targets */
    #bookingModal .btn,
    #bookingModal .form-control,
    #bookingModal .form-select {
        min-height: 36px; /* Adequate touch target */
    }
    
    /* Radio button touch area */
    .schedule-radio-card {
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .schedule-radio-card:hover {
        background: #f0f8ff;
        border-color: #007bff;
    }
    
    .schedule-radio-card.selected {
        background: #e3f2fd;
        border-color: #007bff;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    }
    
    /* Loading states */
    .btn[disabled] {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    /* Focus states */
    #bookingModal .form-control:focus,
    #bookingModal .form-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
    }
    
    /* Scrollbar styling */
    .modal-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .modal-body::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }
    
    .schedule-radio-container::-webkit-scrollbar {
        width: 3px;
    }
    
    .schedule-radio-container::-webkit-scrollbar-thumb {
        background: #007bff;
        border-radius: 2px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    
    /* Reduce animations for better performance */
    #bookingModal * {
        animation-duration: 0.15s !important;
        transition-duration: 0.15s !important;
    }
    
    /* Optimize shadows */
    .modal-content,
    .schedule-radio-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Reduce border radius for better rendering */
    #bookingModal .form-control,
    #bookingModal .btn,
    .info-card {
        border-radius: 4px !important;
    }
}