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

:root {
    --primary: #5c0626;
    --primary-dark: #3a0216;
    --primary-light: #f7e6ec;
    --secondary: #d4af37;
    --secondary-light: #f9f5e8;
    --bg-color: #f5f6f8;
    --card-shadow: 0 10px 30px rgba(92, 6, 38, 0.04), 0 1px 8px rgba(0, 0, 0, 0.02);
    --hover-shadow: 0 15px 35px rgba(92, 6, 38, 0.08), 0 3px 10px rgba(92, 6, 38, 0.02);
    --text-color: #2d3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --white: #ffffff;
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #3b82f6;
    --info-light: #eff6ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 0.95rem;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, .card-premium-title, .header-title, .sidebar-header h5, .receipt-logo h2, .receipt-title h3 {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c3a4b0;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Wrapper Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: flex-start;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header i {
    font-size: 1.75rem;
    color: var(--secondary);
}

.sidebar-header h5 {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    margin: 0;
}

.sidebar-header span {
    font-size: 0.75rem;
    color: var(--secondary);
    display: block;
}

.sidebar-menu {
    padding: 1.25rem 0.75rem;
    flex-grow: 1;
}

.menu-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin: 1.25rem 0 0.5rem 0.75rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: var(--secondary);
    font-weight: 600;
    border-left: 3px solid var(--secondary);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Main Content Wrapper */
.main-content {
    margin-left: 260px;
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    background: var(--white);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-title {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary);
    margin: 0;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

.user-avatar {
    width: 38px;
    height: 38px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    border: 2px solid var(--primary);
}

.user-details {
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

/* Content Area */
.content-body {
    padding: 2rem;
    flex-grow: 1;
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.01);
}

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

.stat-info h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

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

.stat-card-icon.purple { background-color: #f5f3ff; color: #7c3aed; }
.stat-card-icon.green  { background-color: #ecfdf5; color: #10b981; }
.stat-card-icon.orange { background-color: #fffbeb; color: #f59e0b; }
.stat-card-icon.pink   { background-color: #fdf2f8; color: #db2777; }
.stat-card-icon.blue   { background-color: #eff6ff; color: #2563eb; }

/* Custom Badge */
.badge-custom {
    padding: 0.45em 0.85em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
}

.badge-custom.confirmed { background-color: var(--success-light); color: var(--success); }
.badge-custom.pending   { background-color: var(--warning-light); color: var(--warning); }
.badge-custom.cancelled { background-color: var(--danger-light); color: var(--danger); }
.badge-custom.paid      { background-color: var(--info-light); color: var(--info); }
.badge-custom.partial   { background-color: var(--warning-light); color: var(--warning); }

/* Premium Card Design */
.card-premium {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-premium-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-premium-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.card-premium-body {
    padding: 1.5rem;
}

/* Action Cards */
.action-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.action-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-light);
    color: var(--primary);
    box-shadow: var(--hover-shadow);
}

.action-card i {
    font-size: 1.5rem;
}

/* Custom Table */
.table-premium {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
}

.table-premium th {
    background-color: var(--secondary-light);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.table-premium td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
}

.table-premium tr:hover td {
    background-color: #fafbfc;
}

/* Forms */
.form-control-premium, .form-select-premium {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--border-color);
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.2s ease;
}

.form-control-premium:focus, .form-select-premium:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(92, 6, 38, 0.1);
}

/* Buttons */
.btn-premium-primary {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-premium-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    color: var(--white);
}

.btn-premium-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-premium-secondary:hover {
    background-color: #c4a02e;
    color: var(--primary-dark);
}

.btn-premium-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

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

/* Mini Calendar Widget */
.calendar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h6 {
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.calendar-arrows {
    display: flex;
    gap: 0.5rem;
}

.calendar-arrow {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.calendar-arrow:hover {
    background: var(--bg-color);
    color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    text-align: center;
}

.calendar-day-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.25rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.calendar-day:hover {
    background-color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 6, 38, 0.08);
    z-index: 5;
}

.calendar-day.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
}

.calendar-day.today {
    border: 2px solid var(--secondary) !important;
    color: var(--primary-dark);
    font-weight: 800;
}

/* Booked Status Cell Highlights */
.calendar-day.booked-available {
    background-color: var(--warning-light) !important;
    color: #92400e;
}
.calendar-day.booked-available:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.calendar-day.booked-partial {
    background-color: var(--success-light) !important;
    color: #065f46;
}
.calendar-day.booked-partial:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.calendar-day.booked-fully {
    background-color: var(--info-light) !important;
    color: #1e3a8a;
}
.calendar-day.booked-fully:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.calendar-dot-container {
    display: flex;
    justify-content: center;
    gap: 2.5px;
    position: absolute;
    bottom: 5px;
    width: 100%;
}

.calendar-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.calendar-dot.available { background-color: var(--warning); }
.calendar-dot.partial   { background-color: var(--success); }
.calendar-dot.fully     { background-color: var(--info); }

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Glassmorphism Login Container */
.login-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.login-logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.login-logo h3 {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.45rem;
    margin: 0;
}

.login-logo span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Receipt Print layout */
.receipt-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.receipt-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
}

.receipt-logo h2 {
    color: var(--primary);
    font-weight: 800;
    margin: 0;
}

.receipt-logo p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.receipt-title {
    text-align: right;
}

.receipt-title h3 {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
}

.receipt-title p {
    font-size: 0.85rem;
    margin: 0;
}

.receipt-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.receipt-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

.receipt-item-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2.5rem;
}

.receipt-item-table th {
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 0;
    text-align: left;
    color: var(--primary-dark);
}

.receipt-item-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.receipt-totals {
    display: flex;
    justify-content: flex-end;
}

.receipt-totals-table {
    width: 300px;
}

.receipt-totals-table td {
    padding: 0.5rem 0;
}

.receipt-totals-table tr.grand-total td {
    border-top: 2px solid var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    padding-top: 0.75rem;
}

.receipt-footer {
    border-top: 1px dashed var(--border-color);
    padding-top: 2rem;
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.receipt-signature {
    text-align: center;
    width: 200px;
}

.receipt-signature-line {
    border-top: 1px solid var(--text-muted);
    margin-top: 3rem;
    padding-top: 0.5rem;
}

@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    .sidebar, .top-header, .btn-premium-primary, .btn-premium-secondary, .btn-premium-outline, .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .content-body {
        padding: 0 !important;
    }
    .receipt-container {
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1040;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
    }
    .top-header {
        padding: 0 1rem;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(2px);
        z-index: 1030;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

