/* 
 * HOTEL MANAGEMENT SYSTEM - MODERN LUXURY THEME
 * Colors: Navy Blue (#1a252f) & Gold (#c9a961)
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #1a252f;
    --primary-light: #2c3e50;
    --secondary: #c9a961;
    --secondary-hover: #b09350;
    --accent: #e74c3c;
    --success: #27ae60;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f4f6f9;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    background: linear-gradient(180deg, var(--primary) 0%, #10171e 100%);
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow-y: auto; /* Fix scroll */
}

.sidebar-sticky {
    height: calc(100vh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link.active {
    color: var(--secondary);
    background: rgba(201, 169, 97, 0.1);
    border-left-color: var(--secondary);
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    padding: 1rem 1.5rem 0.5rem;
    opacity: 0.8;
}

/* Sidebar Submenus */
.sidebar .collapse.show {
    background: rgba(0,0,0,0.1);
}
.sidebar .collapse .nav-link {
    padding-left: 3rem;
    font-size: 0.9rem;
}

/* --- NAVBAR --- */
.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1.25rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
    color: var(--secondary) !important;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.navbar-toggler {
    top: .25rem;
    right: 1rem;
}

/* --- CARDS & DASHBOARD --- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}

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

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem;
}

.card-title {
    margin-bottom: 0;
    color: var(--primary);
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card .icon-bg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.1;
    color: var(--primary);
    transform: rotate(-15deg);
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #fff;
}

/* --- TABLES --- */
.table {
    vertical-align: middle;
}
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.table-hover tbody tr:hover {
    background-color: rgba(201, 169, 97, 0.05);
}

/* --- BADGES --- */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 6px;
}
.bg-success { background-color: #27ae60 !important; }
.bg-warning { background-color: #f39c12 !important; color: #fff; }
.bg-danger { background-color: #c0392b !important; }
.bg-info { background-color: #2980b9 !important; }

/* --- FORMS --- */
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(201, 169, 97, 0.25);
}

/* --- MAIN CONTENT --- */
main {
    padding-top: 2rem;
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}
