:root {
    /* Advanced HSL Color System */
    --h: 235;
    /* Primary Navy Hue */
    --navy: hsl(var(--h), 48%, 20%);
    --navy-light: hsl(var(--h), 48%, 35%);
    --navy-glass: hsla(var(--h), 48%, 20%, 0.9);

    --e: 161;
    /* Emerald Hue */
    --emerald: hsl(var(--e), 84%, 39%);
    --emerald-dark: hsl(var(--e), 84%, 30%);
    --emerald-light: hsl(var(--e), 84%, 95%);
    --emerald-glass: hsla(var(--e), 84%, 39%, 0.1);

    --slate-50: hsl(210, 40%, 98%);
    --slate-100: hsl(210, 40%, 96%);
    --slate-200: hsl(210, 40%, 90%);
    --slate-700: hsl(210, 20%, 35%);
    --slate-800: hsl(210, 20%, 20%);

    --white: #ffffff;
    --danger: hsl(0, 84%, 60%);
    --warning: hsl(45, 93%, 47%);

    /* Soft Layered Shadows */
    --shadow-sm: 0 1px 2px 0 hsla(210, 20%, 20%, 0.05);
    --shadow: 0 10px 15px -3px hsla(210, 20%, 20%, 0.08), 0 4px 6px -2px hsla(210, 20%, 20%, 0.05);
    --shadow-lg: 0 20px 25px -5px hsla(210, 20%, 20%, 0.1), 0 10px 10px -5px hsla(210, 20%, 20%, 0.04);
    --shadow-premium: 0 0 0 1px hsla(210, 20%, 20%, 0.05), var(--shadow-lg);

    --radius-md: 0.6rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-700);
}

/* App Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar - Modern Gradient Design */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px hsla(var(--h), 48%, 10%, 0.1);
}

.sidebar-header {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--slate-200);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--navy-light);
    color: var(--white);
    border-left: 4px solid var(--emerald);
}

.nav-label {
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

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

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Nav */
.top-nav {
    height: 70px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--slate-700);
    cursor: pointer;
}

.top-nav-left h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* View Container */
.view-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Dashboard Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--slate-100);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kpi-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-glass);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy);
}

.kpi-card:nth-child(2) .kpi-icon {
    background-color: #DEF7EC;
    color: var(--emerald-dark);
}

.kpi-info h3 {
    font-size: 0.875rem;
    color: var(--slate-700);
    margin-bottom: 0.25rem;
}

.kpi-info .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

/* Builder Layout */
.builder-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.builder-form {
    flex: 1;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--slate-100);
}

.builder-summary {
    width: 340px;
    min-width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--glass-border);
    position: sticky;
    top: 2rem;
    overflow: hidden;
}

/* Form Styles */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-100);
    animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    position: relative;
}

.form-section:focus-within {
    z-index: 10;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.125rem;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
}

.form-control {
    padding: 0.875rem 1.125rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--slate-800);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px var(--emerald-glass);
    background-color: white;
}

.form-control:hover:not(:focus) {
    border-color: var(--slate-700);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--emerald);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--emerald-dark);
}

.btn-secondary {
    background-color: var(--navy);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--navy-light);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--slate-200);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {

    th,
    td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Summary Panel */
.summary-header {
    background-color: var(--navy);
    color: var(--white);
    padding: 1.5rem;
}

.summary-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.summary-body {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--slate-700);
    line-height: 1.4;
}

.summary-row span:first-child,
.summary-row strong:first-child {
    flex: 1;
}

.summary-row span:last-child,
.summary-row strong:last-child {
    text-align: right;
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    background-color: var(--slate-200);
    margin: 1rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
}

.summary-footer {
    padding: 1.5rem;
    background-color: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Multi-select items list */
.selection-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease-out forwards;
    transition: all 0.2s;
}

.selection-item:hover {
    border-color: var(--emerald);
    box-shadow: var(--shadow);
}

.selection-header {
    background: var(--slate-100);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    border: 1px solid var(--slate-200);
}

.row-total {
    background: #ecfdf5;
    padding: 0 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #a7f3d0;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--slate-700);
}

.search-input-wrapper .form-control {
    padding-left: 2.5rem;
    background-color: var(--slate-100);
    border-color: transparent;
}

.search-input-wrapper .form-control:focus {
    background-color: white;
    border-color: var(--emerald);
}

.step-badge {
    background-color: var(--navy);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .builder-layout {
        flex-direction: column;
    }

    .builder-summary {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        z-index: 1000;
        height: 100vh;
        width: 280px;
        box-shadow: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(15, 23, 42, 0.25);
    }

    /* Sidebar Overlay for Mobile backdrop clicks */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 990;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.open {
        display: block;
        opacity: 1;
    }

    .mobile-menu-btn {
        display: block;
    }

    .view-container {
        padding: 0.75rem;
    }

    /* Flex adjustments for mobile */
    .top-nav {
        padding: 0 1rem;
        height: 60px;
    }

    .top-nav-left h1 {
        font-size: 1.1rem;
    }

    .top-nav-right .user-profile span {
        display: none;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .builder-form {
        padding: 1rem;
    }

    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .form-section h3 {
        font-size: 1rem;
    }

    .itinerary-manager header,
    .itinerary-builder header,
    .builder-form .form-section header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .itinerary-builder>div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .itinerary-builder>div:first-child .btn {
        width: 100%;
    }

    .day-item-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

}

/* Global Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge-auto {
    background-color: #10B981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.info-box {
    background-color: #EBF5FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.transfer-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transfer-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    position: relative;
    border-left: 6px solid var(--slate-200);
}

.transfer-card:hover {
    border-color: var(--navy-light);
    transform: translateX(5px);
}

.transfer-card.selected {
    border-color: var(--navy);
    border-left-color: var(--emerald);
    background: linear-gradient(to right, var(--emerald-glass), transparent);
    box-shadow: var(--shadow);
}

.transfer-content {
    flex: 1;
}

.transfer-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.transfer-subtitle {
    font-size: 0.85rem;
    color: var(--slate-700);
    margin-bottom: 1rem;
}

.transfer-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tier-badge {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--slate-700);
    background: var(--slate-50);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.tier-badge.active {
    background-color: #4F46E5;
    color: white;
    border-color: #4338CA;
    font-weight: 600;
}

/* PDF Generate overlay */
.pdf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy);
}

/* PDF Template styling */
#pdf-template {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    background: white;
    color: black;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: absolute;
    left: -9999px;
    /* Hide from screen but renderable */
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--navy);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.pdf-title {
    color: var(--emerald-dark);
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pdf-table th,
.pdf-table td {
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 12px;
}

.pdf-table th {
    background-color: var(--navy);
    color: white;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.day-item-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.day-item-card:hover {
    box-shadow: var(--shadow);
}

.day-item-header:hover {
    background: #e2e8f0 !important;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.itinerary-builder {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-edit {
    background: var(--slate-100);
    color: var(--navy);
}

.btn-delete {
    background: #fee2e2;
    color: #ef4444;
}

/* Choices.js Customization */
.choices {
    position: relative;
    margin-bottom: 0 !important;
}

.choices.is-open {
    z-index: 9999 !important;
}

.choices__inner {
    border-radius: 8px !important;
    border-color: var(--slate-200) !important;
    background-color: var(--white) !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 4px 12px !important;
    transition: all 0.2s;
}

.choices__inner:hover {
    border-color: var(--emerald) !important;
}

.choices.is-focused .choices__inner {
    border-color: var(--emerald) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.choices__list--dropdown {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--slate-200) !important;
    background-color: var(--white) !important;
    z-index: 9999 !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 8px;
    overflow: hidden;
    animation: slideUp 0.2s ease-out;
}

.choices__list--dropdown .choices__list {
    max-height: 250px !important;
    overflow-y: auto !important;
}

.choices__list--dropdown .choices__item {
    padding: 12px 16px !important;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: var(--slate-50) !important;
    color: var(--emerald-dark) !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Table Row Animations */
tbody tr {
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
}

tbody tr:nth-child(1) {
    animation-delay: 0.05s;
}

tbody tr:nth-child(2) {
    animation-delay: 0.10s;
}

tbody tr:nth-child(3) {
    animation-delay: 0.15s;
}

tbody tr:nth-child(4) {
    animation-delay: 0.20s;
}

tbody tr:nth-child(5) {
    animation-delay: 0.25s;
}

tbody tr:nth-child(6) {
    animation-delay: 0.30s;
}

tbody tr:nth-child(7) {
    animation-delay: 0.35s;
}

tbody tr:nth-child(8) {
    animation-delay: 0.40s;
}

tbody tr:nth-child(9) {
    animation-delay: 0.45s;
}

tbody tr:nth-child(10) {
    animation-delay: 0.50s;
}

tbody tr:nth-child(n+11) {
    animation-delay: 0.55s;
}

/* Hotel Rate Selection Optimization */
.hotel-rates-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--slate-300);
}

.rate-badge {
    position: relative;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 90px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rate-badge:hover {
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.rate-badge.active {
    border-color: var(--emerald);
    background: var(--emerald-glass);
    box-shadow: 0 0 0 3px hsla(var(--e), 84%, 39%, 0.1);
}

.rate-badge.active::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--emerald);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rate-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
}

.rate-badge.active .rate-label {
    color: var(--emerald-dark);
}

.rate-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
}

/* Responsive Bar Styles */
.responsive-bar-container {
    padding: 2px 0;
}

.bar-input-group {
    display: flex;
    gap: 0.5rem;
    background: var(--slate-100);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
}

.bar-input {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--slate-200);
}

.bar-input i {
    font-size: 0.75rem;
    color: var(--slate-400);
}

.bar-input .form-control {
    border: none !important;
    padding: 0.25rem !important;
    width: 45px !important;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: transparent !important;
    box-shadow: none !important;
}

.bar-total-box {
    background: var(--emerald-light);
    border: 1.5px solid var(--emerald);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    text-align: right;
    min-width: 140px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bar-total-box .row-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 2px;
    background: transparent;
    border: none;
    padding: 0;
}

.bar-total-box .row-per-person {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate-500);
}

/* Compact Rate Badges */
.hotel-rates-display.compact {
    padding: 0.5rem;
    gap: 0.5rem;
    background: transparent;
    border: none;
}

.rate-badge.compact {
    padding: 0.4rem 0.75rem;
    min-width: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.rate-badge.compact .rate-label {
    font-size: 0.6rem;
}

.rate-badge.compact .rate-price {
    font-size: 0.85rem;
}

.surcharge-badge.compact {
    padding: 0.4rem 0.75rem;
    min-width: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.surcharge-badge.compact .rate-label {
    font-size: 0.6rem;
    color: #e11d48;
}

.surcharge-badge.compact .rate-price {
    font-size: 0.85rem;
    color: #be123d;
}

/* Red Delete Button Fix */
.selection-item .btn-danger {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}