:root {
    --primary-color: #0b4632; /* Deep forest green for buttons and primary elements */
    --primary-hover: #062f21;
    --secondary-color: #6b7280;
    --dark-bg: #022c22;
    --sidebar-bg: #022c22; /* Darkest forest green background for the sidebar */
    --light-bg: #f3f5f4; /* Subtle grayish green tint */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    --border-color: #e5e7eb;
    --gold-color: #c5a880; /* Gold color for brand highlights and active dots */
    --gold-hover: #b4966e;
    
    /* Colored inputs backgrounds and text colors */
    --input-bg-green: #e6f4ea;
    --input-text-green: #137333;
    --input-bg-pink: #fde8e8;
    --input-text-pink: #c81e1e;
    --input-bg-yellow: #fef3c7;
    --input-text-yellow: #92400e;
    --input-bg-blue: #e1effe;
    --input-text-blue: #1e429f;
}

body {
    background-color: var(--light-bg);
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #334155;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* App Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar Styling */
#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--sidebar-bg);
    color: #cbd5e1;
    transition: all 0.3s;
    min-height: 100vh;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#sidebar.active {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    padding: 24px 20px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .sidebar-header h4 {
    margin: 0;
    font-weight: 700;
}

#sidebar ul.components {
    padding: 15px 0;
    flex-grow: 1;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li {
    margin: 4px 12px;
}

#sidebar ul li a {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: #a3b8b0;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    border-left: none;
}

#sidebar ul li a i {
    font-size: 1.1rem;
    margin-right: 12px;
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

#sidebar ul li.active > a {
    color: #fff;
    background: #0f5132; /* Capsule active background */
}

#sidebar ul li.active > a i {
    color: #fff;
}

#sidebar ul li a[data-bs-toggle="collapse"] {
    position: relative;
}

#sidebar ul li a[data-bs-toggle="collapse"]::after {
    display: block;
    content: "\F128"; /* Bootstrap icon code for chevron-down */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 16px;
}

#sidebar ul li ul.collapse {
    background: transparent;
    padding-left: 0;
    margin-top: 4px;
}

#sidebar ul li ul.collapse li {
    margin: 2px 0 2px 20px;
}

#sidebar ul li ul.collapse li a {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #a3b8b0;
    display: flex;
    align-items: center;
    border-radius: 6px;
}

#sidebar ul li ul.collapse li a::before {
    content: "•";
    color: var(--gold-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -5px;
    margin-right: 5px;
    font-size: 1.1rem;
}

#sidebar ul li ul.collapse li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

#sidebar ul li ul.collapse li.active a {
    color: var(--gold-color);
    font-weight: 600;
    background: transparent;
}

#sidebar ul li ul.collapse li.active a::before {
    color: var(--gold-color);
}

/* Sidebar Promo Card */
.sidebar-promo-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.sidebar-promo-card:hover {
    transform: scale(1.02);
}

/* Content Area */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.main-content {
    flex: 1;
    padding: 24px 30px;
}

/* Custom Colored Inputs styling */
.bg-input-green {
    background-color: var(--input-bg-green) !important;
    color: var(--input-text-green) !important;
    border-color: #bcf0da !important;
}

.bg-input-pink {
    background-color: var(--input-bg-pink) !important;
    color: var(--input-text-pink) !important;
    border-color: #fbd5d5 !important;
}

.bg-input-yellow {
    background-color: var(--input-bg-yellow) !important;
    color: var(--input-text-yellow) !important;
    border-color: #fde8e8 !important;
}

.bg-input-blue {
    background-color: var(--input-bg-blue) !important;
    color: var(--input-text-blue) !important;
    border-color: #c3ddfd !important;
}

.bg-input-green[readonly], .bg-input-green:disabled,
.bg-input-pink[readonly], .bg-input-pink:disabled,
.bg-input-yellow[readonly], .bg-input-yellow:disabled,
.bg-input-blue[readonly], .bg-input-blue:disabled {
    opacity: 0.9;
}

/* Card custom headers and icons */
.card-body h5.fw-bold, .card-body h6.fw-bold {
    color: #0b4632 !important;
}
.card-body h5.fw-bold i, .card-body h6.fw-bold i {
    color: #0b4632 !important;
}

/* Custom Buttons matching screenshot */
.btn-warning-custom {
    background-color: #f5dfbe !important;
    border-color: #f5dfbe !important;
    color: #4b3211 !important;
    font-weight: 600;
}
.btn-warning-custom:hover {
    background-color: #e7cca4 !important;
    border-color: #e7cca4 !important;
}

.btn-success-custom {
    background-color: #0b4632 !important;
    border-color: #0b4632 !important;
    color: #fff !important;
    font-weight: 600;
}
.btn-success-custom:hover {
    background-color: #072e21 !important;
    border-color: #072e21 !important;
}

.btn-receipt-custom {
    background-color: #f2e7dc !important;
    border-color: #f2e7dc !important;
    color: #4f3f33 !important;
    font-weight: 600;
}
.btn-receipt-custom:hover {
    background-color: #e3d7cb !important;
    border-color: #e3d7cb !important;
}

.btn-whatsapp-custom {
    background-color: #ffffff !important;
    border: 1px solid #137333 !important;
    color: #137333 !important;
    font-weight: 600;
}
.btn-whatsapp-custom:hover {
    background-color: #e6f4ea !important;
    border-color: #137333 !important;
}

/* Breadcrumbs Custom styling */
.breadcrumb-container {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
    margin-bottom: 20px;
}
.breadcrumb {
    background: transparent !important;
    padding: 0;
    margin: 0;
    font-size: 0.825rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: ">" !important;
    color: #6c757d;
}
.breadcrumb-item a {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item.active {
    color: #6c757d;
}


/* Modern Card Styling */
.stat-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .card-body {
    padding: 24px;
}

/* Room Status Colors */
.status-available { background-color: #d1fae5; color: #065f46; }
.status-occupied { background-color: #fee2e2; color: #991b1b; }
.status-reserved { background-color: #fef3c7; color: #92400e; }
.status-maintenance { background-color: #f3f4f6; color: #374151; }
.status-inactive { background-color: #e5e7eb; color: #4b5563; }

/* Status Badges */
.badge-available { background: #10b981; }
.badge-occupied { background: #ef4444; }
.badge-reserved { background: #f59e0b; }
.badge-maintenance { background: #6b7280; }
.badge-inactive { background: #374151; }

/* Calendar Grid Visual Layout */
.calendar-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.calendar-grid-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 2px;
}

.calendar-grid-table th {
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.calendar-grid-table td {
    padding: 6px;
    text-align: center;
    vertical-align: middle;
}

.calendar-cell {
    border-radius: 4px;
    padding: 8px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    min-width: 32px;
    transition: opacity 0.2s;
}

.calendar-cell:hover {
    opacity: 0.8;
}

.calendar-room-col {
    font-weight: 600;
    text-align: left !important;
    color: #1e293b;
    background: #f8fafc;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 1px solid #cbd5e1;
    padding-right: 15px !important;
}

/* Glassmorphism Auth Styling */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #059669 0%, #022c22 100%);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(#34d399, #6ee7b7);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    opacity: 0.3;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(#059669, #10b981);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    opacity: 0.2;
}

.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    z-index: 10;
}

/* Print Styles */
@media print {
    #sidebar, .top-navbar, .no-print, .btn, .breadcrumb, nav {
        display: none !important;
    }
    #content, .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .print-full-width {
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }
    .print-invoice {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* Bootstrap Theme Overrides for Tranquil Trees nature design */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}
.border-primary {
    border-color: var(--primary-color) !important;
}
.table-primary {
    --bs-table-bg: #e2f0d9 !important;
    --bs-table-border-color: #c5e0b4 !important;
    color: #385723 !important;
}
.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.page-link {
    color: var(--primary-color);
}
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

