/* Custom Admin Styles for Celia's Suites */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

body, p, span, a, input, select, textarea, button, .menu-text {
    font-family: 'Outfit', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .page-title, .menu-title, .logo-text {
    font-family: 'Playfair Display', serif !important;
}

.admin-logo-img {
    height: 60px;
    width: auto;
    display: inline-block;
}

.admin-logo-img-dark {
    display: inline-block;
}

.admin-logo-img-light {
    display: none;
}

html[data-bs-theme="dark"] .admin-logo-img-light {
    display: inline-block;
}

html[data-bs-theme="dark"] .admin-logo-img-dark {
    display: none;
}

.auth-logo-img {
    height: 52px;
    width: auto;
    max-width: 100%;
    display: inline-block;
}

.auth-logo-img-dark {
    display: inline-block;
}

.auth-logo-img-light {
    display: none;
}

html[data-bs-theme="dark"] .auth-logo-img-light {
    display: inline-block;
}

html[data-bs-theme="dark"] .auth-logo-img-dark {
    display: none;
}

/* Primary Color Overrides */
.text-primary { color: #aa8453 !important; }
.bg-primary { background-color: #aa8453 !important; }
.btn-primary {
    background-color: #aa8453 !important;
    border-color: #aa8453 !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #927045 !important;
    border-color: #927045 !important;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: #aa8453 !important;
}

.menu-link:hover, .menu-link:active, .menu-item.active > .menu-link {
    color: #aa8453 !important;
}

.menu-item.active > .menu-link .menu-icon, .menu-link:hover .menu-icon {
    color: #aa8453 !important;
}

.admin-submenu {
    padding: 0.25rem 0 0.35rem;
}

.submenu-link {
    padding-left: 3.25rem !important;
    font-size: 0.92rem;
}

.sidebar-dropdown-toggle {
    position: relative;
    padding-right: 2.75rem !important;
}

.sidebar-dropdown-toggle::after {
    content: "\ea50";
    font-family: "boxicons";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: inherit;
    transition: transform 0.2s ease;
}

.sidebar-dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(90deg);
}

.badge.bg-primary {
    background-color: #aa8453 !important;
}

a {
    color: #aa8453;
}
a:hover {
    color: #927045;
}

.form-control:focus {
    border-color: #aa8453 !important;
    box-shadow: 0 0 0 0.2rem rgba(170, 132, 83, 0.25) !important;
}

/* Custom Auth Page Styling */
.auth-bg {
    background-color: #f8f5f0;
}
.auth-card {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.auth-logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
}
.auth-logo span {
    color: #aa8453;
}

/* Responsive admin tables */
.room-list-card,
.booking-list-card {
    overflow: visible;
}

.page-content,
.page-content .container-fluid,
.page-content .row,
.page-content .col-12,
.room-list-card,
.booking-list-card,
.room-list-card .card-body,
.booking-list-card .card-body {
    min-width: 0;
}

.room-list-card .card-body,
.booking-list-card .card-body {
    padding-bottom: 0;
}

.room-table-wrap,
.booking-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.room-table,
.booking-table {
    width: 100%;
    min-width: 100%;
}

.booking-table {
    width: 1500px;
    min-width: 1500px;
    table-layout: auto;
}

.room-table th,
.room-table td,
.booking-table th,
.booking-table td {
    vertical-align: middle;
}

.room-table th,
.booking-table th {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.room-table td,
.booking-table td {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.room-table .room-uin,
.booking-table .booking-reference {
    word-break: break-word;
}

.room-table .room-description {
    min-width: 220px;
    white-space: normal;
    line-height: 1.55;
}

.room-thumbnail {
    width: 150px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.room-action-group .btn,
.booking-action-group .btn {
    white-space: nowrap;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
}

.room-table .dropdown-menu,
.booking-table .dropdown-menu {
    min-width: 10rem;
}

.mobile-dropdown-menu {
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.room-action-group,
.booking-action-group {
    margin: 0;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-accepted {
    background-color: #155724;
    color: #fff;
}

.badge-rejected {
    background-color: #ff0000;
    color: #fff;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 1.5rem;
    }

    .room-list-card .card-body,
    .booking-list-card .card-body {
        padding: 1rem;
    }

    .room-table,
    .booking-table {
        width: max-content;
        min-width: 860px;
    }

    .page-content .table-responsive {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .room-table th,
    .room-table td,
    .booking-table th,
    .booking-table td {
        padding: 0.75rem 0.65rem;
        font-size: 0.875rem;
    }

    .room-table .room-description {
        min-width: 240px;
    }

    .room-thumbnail {
        width: 120px;
        height: 64px;
    }
}

 /* ── Invoice wrapper ── */
        .invoice-card {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 24px rgba(0,0,0,0.07);
        }

        /* ── Gold header band ── */
        .invoice-header {
            background: linear-gradient(135deg, #aa8453 0%, #c9a06e 60%, #927045 100%);
            color: #fff;
            padding: 2rem 2.5rem;
            position: relative;
        }
        .invoice-header::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 4px;
            background: rgba(255,255,255,0.15);
        }
        .invoice-brand {
            font-family: 'Playfair Display', serif;
            font-size: 1.75rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        .invoice-brand small {
            font-family: 'Outfit', sans-serif;
            font-size: 0.78rem;
            font-weight: 300;
            opacity: 0.85;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            display: block;
            margin-top: 2px;
        }
        .invoice-ref {
            font-family: 'Outfit', sans-serif;
            font-size: 0.8rem;
            opacity: 0.85;
            letter-spacing: 0.5px;
        }
        .invoice-ref strong {
            font-size: 1.15rem;
            font-weight: 600;
            opacity: 1;
            display: block;
            letter-spacing: 1px;
        }

        /* ── Body sections ── */
        .invoice-body {
            padding: 2rem 2.5rem;
            background: #fff;
        }

        .invoice-section-title {
            font-family: 'Playfair Display', serif;
            font-size: 0.95rem;
            font-weight: 600;
            color: #aa8453;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #f0e8dc;
        }

        .invoice-detail-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 3px;
        }
        .invoice-detail-value {
            font-size: 0.95rem;
            color: #333;
            font-weight: 500;
        }
        .invoice-detail-group {
            margin-bottom: 1.25rem;
        }

        /* ── Stay summary strip ── */
        .stay-strip {
            background: #faf7f3;
            border: 1px solid #f0e8dc;
            border-radius: 10px;
            padding: 1.25rem 1.5rem;
            margin-bottom: 1.5rem;
        }
        .stay-strip .stay-item {
            text-align: center;
            flex: 1;
        }
        .stay-strip .stay-item + .stay-item {
            border-left: 1px solid #e8ddd0;
        }
        .stay-strip .stay-label {
            font-size: 0.72rem;
            font-weight: 600;
            color: #aa8453;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }
        .stay-strip .stay-value {
            font-size: 0.92rem;
            font-weight: 600;
            color: #333;
        }
        .stay-strip .stay-value.nights {
            font-size: 1.5rem;
            font-family: 'Playfair Display', serif;
            color: #aa8453;
            line-height: 1;
        }
        .stay-strip .stay-value.nights small {
            font-family: 'Outfit', sans-serif;
            font-size: 0.72rem;
            font-weight: 400;
            color: #999;
            display: block;
        }

        /* ── Price table ── */
        .invoice-price-table {
            width: 100%;
            border-collapse: collapse;
        }
        .invoice-price-table td {
            padding: 0.6rem 0;
            font-size: 0.9rem;
            border: none;
            vertical-align: middle;
        }
        .invoice-price-table .label-col {
            color: #666;
        }
        .invoice-price-table .amount-col {
            text-align: right;
            font-weight: 600;
            color: #333;
        }
        .invoice-price-table tr.divider td {
            border-top: 1px dashed #e8ddd0;
            padding-top: 0.75rem;
            margin-top: 0.25rem;
        }
        .invoice-price-table tr.total-row td {
            border-top: 2px solid #aa8453;
            padding-top: 0.8rem;
            font-size: 1.05rem;
        }
        .invoice-price-table tr.total-row .label-col {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            color: #333;
        }
        .invoice-price-table tr.total-row .amount-col {
            color: #aa8453;
            font-size: 1.15rem;
        }

        /* ── Divider ── */
        .invoice-divider {
            border: none;
            border-top: 1px solid #f0e8dc;
            margin: 1.75rem 0;
        }

        /* ── Footer strip ── */
        .invoice-footer {
            background: #faf7f3;
            padding: 1rem 2.5rem;
            border-top: 1px solid #f0e8dc;
            font-size: 0.78rem;
            color: #aaa;
            font-family: 'Outfit', sans-serif;
        }

        /* ── Action buttons row ── */
        .invoice-actions {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }
        .btn-invoice-accept {
            background-color: #27ae60;
            border-color: #27ae60;
            color: #fff;
        }
        .btn-invoice-accept:hover {
            background-color: #219150;
            border-color: #219150;
            color: #fff;
        }
        .btn-invoice-reject {
            background-color: #e74c3c;
            border-color: #e74c3c;
            color: #fff;
        }
        .btn-invoice-reject:hover {
            background-color: #c0392b;
            border-color: #c0392b;
            color: #fff;
        }

        /* ── Print styles ── */
        @media print {
            .no-print { display: none !important; }
            .invoice-card { box-shadow: none !important; }
            body { background: #fff !important; }
            .layout-wrapper > *:not(.px-3) { display: none !important; }
        }

        /* ── Mobile tweaks ── */
        @media (max-width: 575.98px) {
            .invoice-header { padding: 1.5rem 1.25rem; }
            .invoice-body  { padding: 1.5rem 1.25rem; }
            .invoice-footer { padding: 1rem 1.25rem; }
            .invoice-brand { font-size: 1.4rem; }
            .stay-strip { padding: 1rem; }
            .stay-strip .stay-value { font-size: 0.82rem; }
            .stay-strip .stay-value.nights { font-size: 1.2rem; }
            .stay-strip .stay-item + .stay-item { border-left: none; border-top: 1px solid #e8ddd0; padding-top: 0.75rem; margin-top: 0.75rem; }
            .stay-strip { flex-direction: column !important; }
            .invoice-actions { flex-direction: column; }
            .invoice-actions .btn { width: 100%; text-align: center; }
        } /* ── Invoice wrapper ── */
        .invoice-card {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 24px rgba(0,0,0,0.07);
        }

        /* ── Gold header band ── */
        .invoice-header {
            background: linear-gradient(135deg, #aa8453 0%, #c9a06e 60%, #927045 100%);
            color: #fff;
            padding: 2rem 2.5rem;
            position: relative;
        }
        .invoice-header::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 4px;
            background: rgba(255,255,255,0.15);
        }
        .invoice-brand {
            font-family: 'Playfair Display', serif;
            font-size: 1.75rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        .invoice-brand small {
            font-family: 'Outfit', sans-serif;
            font-size: 0.78rem;
            font-weight: 300;
            opacity: 0.85;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            display: block;
            margin-top: 2px;
        }
        .invoice-ref {
            font-family: 'Outfit', sans-serif;
            font-size: 0.8rem;
            opacity: 0.85;
            letter-spacing: 0.5px;
        }
        .invoice-ref strong {
            font-size: 1.15rem;
            font-weight: 600;
            opacity: 1;
            display: block;
            letter-spacing: 1px;
        }

        /* ── Body sections ── */
        .invoice-body {
            padding: 2rem 2.5rem;
            background: #fff;
        }

        .invoice-section-title {
            font-family: 'Playfair Display', serif;
            font-size: 0.95rem;
            font-weight: 600;
            color: #aa8453;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #f0e8dc;
        }

        .invoice-detail-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 3px;
        }
        .invoice-detail-value {
            font-size: 0.95rem;
            color: #333;
            font-weight: 500;
        }
        .invoice-detail-group {
            margin-bottom: 1.25rem;
        }

        /* ── Stay summary strip ── */
        .stay-strip {
            background: #faf7f3;
            border: 1px solid #f0e8dc;
            border-radius: 10px;
            padding: 1.25rem 1.5rem;
            margin-bottom: 1.5rem;
        }
        .stay-strip .stay-item {
            text-align: center;
            flex: 1;
        }
        .stay-strip .stay-item + .stay-item {
            border-left: 1px solid #e8ddd0;
        }
        .stay-strip .stay-label {
            font-size: 0.72rem;
            font-weight: 600;
            color: #aa8453;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }
        .stay-strip .stay-value {
            font-size: 0.92rem;
            font-weight: 600;
            color: #333;
        }
        .stay-strip .stay-value.nights {
            font-size: 1.5rem;
            font-family: 'Playfair Display', serif;
            color: #aa8453;
            line-height: 1;
        }
        .stay-strip .stay-value.nights small {
            font-family: 'Outfit', sans-serif;
            font-size: 0.72rem;
            font-weight: 400;
            color: #999;
            display: block;
        }

        /* ── Price table ── */
        .invoice-price-table {
            width: 100%;
            border-collapse: collapse;
        }
        .invoice-price-table td {
            padding: 0.6rem 0;
            font-size: 0.9rem;
            border: none;
            vertical-align: middle;
        }
        .invoice-price-table .label-col {
            color: #666;
        }
        .invoice-price-table .amount-col {
            text-align: right;
            font-weight: 600;
            color: #333;
        }
        .invoice-price-table tr.divider td {
            border-top: 1px dashed #e8ddd0;
            padding-top: 0.75rem;
            margin-top: 0.25rem;
        }
        .invoice-price-table tr.total-row td {
            border-top: 2px solid #aa8453;
            padding-top: 0.8rem;
            font-size: 1.05rem;
        }
        .invoice-price-table tr.total-row .label-col {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            color: #333;
        }
        .invoice-price-table tr.total-row .amount-col {
            color: #aa8453;
            font-size: 1.15rem;
        }

        /* ── Divider ── */
        .invoice-divider {
            border: none;
            border-top: 1px solid #f0e8dc;
            margin: 1.75rem 0;
        }

        /* ── Footer strip ── */
        .invoice-footer {
            background: #faf7f3;
            padding: 1rem 2.5rem;
            border-top: 1px solid #f0e8dc;
            font-size: 0.78rem;
            color: #aaa;
            font-family: 'Outfit', sans-serif;
        }

        /* ── Action buttons row ── */
        .invoice-actions {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }
        .btn-invoice-accept {
            background-color: #27ae60;
            border-color: #27ae60;
            color: #fff;
        }
        .btn-invoice-accept:hover {
            background-color: #219150;
            border-color: #219150;
            color: #fff;
        }
        .btn-invoice-reject {
            background-color: #e74c3c;
            border-color: #e74c3c;
            color: #fff;
        }
        .btn-invoice-reject:hover {
            background-color: #c0392b;
            border-color: #c0392b;
            color: #fff;
        }

        /* ── Print styles ── */
        @media print {
            .no-print { display: none !important; }
            .invoice-card { box-shadow: none !important; }
            body { background: #fff !important; }
            .layout-wrapper > *:not(.px-3) { display: none !important; }
        }

        /* ── Mobile tweaks ── */
        @media (max-width: 575.98px) {
            .invoice-header { padding: 1.5rem 1.25rem; }
            .invoice-body  { padding: 1.5rem 1.25rem; }
            .invoice-footer { padding: 1rem 1.25rem; }
            .invoice-brand { font-size: 1.4rem; }
            .stay-strip { padding: 1rem; }
            .stay-strip .stay-value { font-size: 0.82rem; }
            .stay-strip .stay-value.nights { font-size: 1.2rem; }
            .stay-strip .stay-item + .stay-item { border-left: none; border-top: 1px solid #e8ddd0; padding-top: 0.75rem; margin-top: 0.75rem; }
            .stay-strip { flex-direction: column !important; }
            .invoice-actions { flex-direction: column; }
            .invoice-actions .btn { width: 100%; text-align: center; }
        }

        /* Final print override for booking invoice */
        @media print {
            html,
            body {
                background: #fff !important;
            }

            .main-menu,
            .navbar-custom,
            .footer,
            .no-print {
                display: none !important;
            }

            .layout-wrapper,
            .page-content,
            .px-3,
            .container-fluid,
            .row,
            .col-12,
            .col-xl-9 {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            .invoice-card,
            .invoice-header,
            .invoice-body,
            .invoice-footer {
                display: block !important;
                visibility: visible !important;
            }

            .invoice-card {
                box-shadow: none !important;
                border: 1px solid #ddd !important;
                page-break-inside: avoid;
            }
        }
