.header-icon {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #c5a855 100%);
    color: #fff;
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    box-shadow: 0 2px 8px rgba(13, 111, 26, 0.15);
    margin-right: 0.7rem;    

}


/* Make Select2 match Bootstrap form-control height in modal */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    padding: 8px 12px;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    font-size: 1rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 8px;
}
/* Fix z-index for Add button so it stays above content but below modal backdrop */
.cbd-add-client-btn {
    z-index: 1040;
}
.modal-backdrop.show {
    z-index: 1050;
}
.modal.show {
    z-index: 1060;
}
/* Hide add button when modal is open to avoid overlap */
body.modal-open .cbd-add-client-btn {
    z-index: 1020;
    opacity: 0;
    pointer-events: none;
}

/* Edit Client Button */
.cbd-edit-client-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px 0 rgba(52, 152, 219, 0.15);
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    margin-right: 6px;
}
.cbd-edit-client-btn:hover, .cbd-edit-client-btn:focus {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: #fff;
}
/* Delete Client Button */
.cbd-delete-client-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px 0 rgba(231, 76, 60, 0.15);
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.cbd-delete-client-btn:hover, .cbd-delete-client-btn:focus {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
}
/* Add Client Button */
.cbd-add-client-btn {
    width: 52px;
    height: 52px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(216, 187, 96, 0.15);
    transition: background 0.2s, color 0.2s;
    z-index: 1051;
}
.cbd-add-client-btn:hover, .cbd-add-client-btn:focus {
    background: linear-gradient(135deg, var(--secondary-gold) 0%, var(--primary-gold) 100%);
    color: #fff;
}
/* CBD custom navbar background */
.bg-dark-gold {
    background-color: var(--dark-gold) !important;
}

.cbd-navbar {
    background-color: var(--dark-gold) !important;
    box-shadow: 0 2px 8px 0 rgba(139, 124, 63, 0.10);
    position: relative;
    z-index: 1030;
}

.navbar-nav .dropdown-menu,
.dropdown-menu.show,
.nav-item.dropdown .dropdown-menu {
    z-index: 2000 !important;
}

.cbd-nav-btn {
    color: #fff !important;
    font-weight: 500;
    border-radius: 0.7rem;
    transition: background 0.2s, color 0.2s;
}
.cbd-nav-btn.active, .cbd-nav-btn:hover, .cbd-nav-btn:focus {
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--secondary-gold) 100%) !important;
    color: #fff !important;
}
.cbd-nav-icon {
    font-size: 1.3rem;
}
/* Custom CSS for gold theme */
:root {
    --primary-gold: #d8bb60;
    --secondary-gold: #c5a855;
    --light-gold: #fbf9f2;
    --dark-gold: #2a2a2a;
}

body {
    background: linear-gradient(135deg, var(--light-gold) 0%, #f8fafc 100%);
}

.login-card {
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(216, 187, 96, 0.10);
    background: #fff;
    padding: 2.5rem 2rem;
    max-width: 370px;
    width: 100%;
    text-align: center;
}

.login-card .avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 16px rgba(216, 187, 96, 0.15);
}

.login-card .form-control {
    border-radius: 1rem;
}

.login-card .btn-primary {
    border-radius: 1rem;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border: none;
    font-weight: bold;
    transition: background 0.3s;
}

.login-card .btn-primary:hover {
    background: linear-gradient(90deg, var(--secondary-gold) 0%, var(--primary-gold) 100%);
}

.login-card .form-text {
    color: var(--primary-gold);
}

/* Categories Page Styles */
.categories-page-bg {
    background: linear-gradient(135deg, var(--light-gold) 0%, #f8fafc 100%);
}

.categories-title {
    color: var(--primary-gold);
}

.category-item {
    cursor: move;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.category-item:hover {
    background-color: var(--bs-light);
    border-left-color: var(--primary-gold);
}

.category-item.sortable-chosen {
    background-color: var(--bs-light);
    border-left-color: var(--primary-gold);
    transform: rotate(2deg);
}

.category-item.sortable-drag {
    opacity: 0.8;
    transform: rotate(5deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.drag-handle {
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.4;
    background-color: var(--bs-primary-bg-subtle);
}

.category-item.filtered-out {
    display: none !important;
}

/* Edit Category Modal */
.edit-category-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: white;
    border-bottom: none;
}

.edit-category-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.edit-category-modal .form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(216, 187, 96, 0.25);
}

.edit-category-modal .btn-primary {
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border: none;
    transition: all 0.3s ease;
}

.edit-category-modal .btn-primary:hover {
    background: linear-gradient(90deg, var(--secondary-gold) 0%, var(--primary-gold) 100%);
    transform: translateY(-1px);
}

.edit-category-modal .btn-primary:disabled {
    background: linear-gradient(90deg, #ccc 0%, #aaa 100%);
    transform: none;
}

/* Category List Item Styling */
.category-date {
    font-size: 0.75rem !important;
}

.category-order {
    font-size: 0.7rem !important;
}

.category-order-badge {
    font-size: 0.65rem !important;
    padding: 0.2em 0.4em !important;
}
