/* --- REVISI SKEMA WARNA --- */
:root {
    --hotel-primary: #1a5e63;   /* Deep Teal */
    --hotel-secondary: #c5a05b; /* Gold */
    --hotel-accent: #e4b66a;    /* Light Gold */
    --hotel-light: #fdfaf4;     /* Creamy White */
    --hotel-dark: #2c3e50;      /* Charcoal Grey */
    --hotel-gradient: linear-gradient(135deg, var(--hotel-primary), #2c7a7b);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.15);
}

body {
    background: linear-gradient(135deg, #f7f9f9 0%, #eef3f3 100%);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    min-height: 100vh;
    padding: 10px 0;
    overflow-x: hidden;
}

#loginOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-box .developer-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 25px;
}

.login-box .developer-info a {
    color: var(--hotel-primary);
    text-decoration: none;
}

.login-box .developer-info a:hover {
    text-decoration: underline;
}

.login-box .app-logo {
    font-size: 3rem;
    color: var(--hotel-primary);
    margin-bottom: 15px;
}

.login-box h2 {
    margin-bottom: 25px;
    color: var(--hotel-dark);
    font-weight: 700;
}

.app-container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.app-header {
    background: var(--hotel-gradient);
    color: white;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-header::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%);
    pointer-events: none;
}

.app-logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.app-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.app-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* user info di header */
.user-info {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    z-index: 10;
}
.user-info span {
    font-size: 0.9rem;
    font-weight: 500;
}
.user-info button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    border-radius: 20px;
    padding: 5px 15px;
    transition: 0.3s;
}
.user-info button:hover {
    background: rgba(255,255,255,0.3);
}

.nav-pills .nav-link {
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px 15px;
    font-weight: 500;
    color: var(--hotel-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.nav-pills .nav-link:hover {
    background-color: #eef3f3;
    color: var(--hotel-primary);
    transform: translateX(3px);
}

.nav-pills .nav-link.active {
    background: var(--hotel-gradient);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
    color: white;
}

.section-title {
    border-left: 4px solid var(--hotel-primary);
    padding-left: 12px;
    margin: 20px 0;
    font-weight: 700;
    color: var(--hotel-dark);
    font-size: 1.4rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 12px;
    width: 40px;
    height: 2px;
    background: var(--hotel-secondary);
    border-radius: 2px;
}

.btn {
     font-size: 0.9rem;
}

.btn-primary {
    background: var(--hotel-gradient);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.form-label i {
    margin-right: 6px;
    color: var(--hotel-primary);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hotel-primary);
    box-shadow: 0 0 0 3px rgba(26, 94, 99, 0.2);
    transform: translateY(-2px);
}

/* Toggle password */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
}
.password-toggle:hover {
    color: var(--hotel-primary);
}

.copyright {
    text-align: center;
    padding: 20px;
    background-color: var(--hotel-light);
    color: var(--hotel-dark);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
}

.copyright a {
    color: var(--hotel-primary);
    text-decoration: none;
    font-weight: 600;
}
.copyright a:hover {
    text-decoration: underline;
}

.data-table {
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th {
    background: var(--hotel-gradient);
    color: white;
    font-weight: 600;
    padding: 12px 10px;
    text-align: center;
    position: relative;
    font-size: 0.85rem;
}

.data-table th::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.data-table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}

.data-table tr:nth-child(even) {
    background-color: #f7f9f9;
}

.data-table tr:hover {
    background-color: #eef3f3;
}

.feature-icon {
    font-size: 1.1rem;
    margin-right: 8px;
    width: 24px;
    text-align: center;
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
    padding: 15px 20px;
    background: var(--hotel-gradient);
    color: white;
    font-size: 0.95rem;
}

.stats-box {
    text-align: center;
    padding: 20px 15px;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stats-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--hotel-secondary);
    border-radius: 2px;
}

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

.stats-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--hotel-primary);
    margin: 10px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.stats-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: calc(100vw - 40px);
}

.input-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.watermark-container {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.watermark-item {
    opacity: 0.8;
    font-size: 0.8rem;
    color: white;
    font-weight: 300;
}

.control-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: var(--shadow-sm);
}

.control-title {
    font-size: 1rem;
    color: var(--hotel-primary);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.floating-action-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--hotel-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s;
}

.floating-action-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.filter-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.badge-custom {
    background: var(--hotel-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.8rem;
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1050;
    background: var(--hotel-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: var(--shadow-lg);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

.guest-search-results .list-group-item {
    cursor: pointer;
}
.guest-search-results .list-group-item:hover {
    background-color: #f0f0f0;
}

.form-facilities-columns {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
}

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

.tab-pane {
     animation: fadeIn 0.5s ease forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--hotel-primary);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hotel-dark);
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .col-md-3.col-lg-2 {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        width: 280px;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 60px;
    }
    
    .col-md-3.col-lg-2.mobile-show {
        left: 0;
    }
    
    .main-content {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        padding: 15px !important;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-overlay.mobile-show {
        display: block;
    }

    .form-facilities-columns {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }

    .app-title {
        font-size: 1.5rem;
    }

    .app-subtitle {
        font-size: 0.9rem;
    }
    
    #roomStatusFilter {
        flex-wrap: wrap;
        gap: 5px;
    }
}

@media (max-width: 767.98px) {
     .stats-box {
        margin-bottom: 20px;
    }
    .filter-section .row > div {
        margin-bottom: 15px;
    }
    .filter-section .row > div:last-child {
        margin-bottom: 0;
    }
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .form-facilities-columns {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }

    .login-box {
        padding: 25px;
    }

    .app-header {
        padding: 15px;
    }

    .app-title {
        font-size: 1.2rem;
    }
    .app-subtitle {
        font-size: 0.8rem;
    }
}

/* --- IMPROVED PRINT STYLES START --- */
@media print {
    body, html {
        background: #fff !important;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .no-print {
        display: none !important;
    }
    body * {
        visibility: hidden;
    }
    .printable-area, .printable-area * {
        visibility: visible;
    }
    .printable-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 4mm !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        font-size: 11pt;
    }

    .printable-area .row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    .printable-area .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .printable-area .text-end {
        text-align: right !important;
    }
    .printable-area .invoice-container {
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    .printable-area .invoice-logo-img {
        max-width: 150px !important;
        height: auto !important;
    }
    .printable-area .invoice-table {
        width: 100%;
        font-size: 9pt;
    }
    .printable-area .invoice-table th, .printable-area .invoice-table td {
        border: 1px solid #dee2e6 !important;
        padding: 4px 6px;
    }
    .printable-area .invoice-table th {
        background-color: #1a5e63 !important;
        color: white !important;
    }
    
    .printable-area .invoice-watermark {
        position: fixed;
        font-size: 8vw !important;
        z-index: -1;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
/* --- IMPROVED PRINT STYLES END --- */

/* Room status indicators */
.room-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-available {
    background-color: #28a745;
}

.status-occupied {
    background-color: #dc3545;
}

.status-maintenance {
    background-color: #ffc107;
}

.status-reserved {
    background-color: #17a2b8;
}

/* Invoice styles */
.invoice-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.invoice-watermark {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 6rem;
    font-weight: 800;
    color: rgba(220, 53, 69, 0.15);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 5px;
}

.invoice-container.watermarked .invoice-watermark {
    display: block;
}

.invoice-header {
    border-bottom: 2px solid var(--hotel-primary);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.invoice-logo-img {
    max-height: 60px;
    margin-bottom: 10px;
}

.invoice-logo {
    font-size: 2rem;
    color: var(--hotel-primary);
    font-weight: 700;
}

.invoice-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.invoice-table th {
    background: var(--hotel-primary);
    color: white;
}

.invoice-footer {
    border-top: 2px solid var(--hotel-primary);
    padding-top: 20px;
    margin-top: 30px;
    font-style: italic;
    color: #6c757d;
}

#reportSummary {
    background-color: var(--hotel-light);
    border-left: 5px solid var(--hotel-primary);
    padding: 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hotel-dark);
}
