/**
 * Global UI Component Styles
 * Includes: Form controls, Checkboxes, Radio buttons, Cards, and Custom Dropdowns
 * Provides consistent theming across admin and vendor panels
 */

/* ===== GLOBAL CARD STYLING ===== */
/* Applies to all cards automatically with adaptive behavior */

/* Base card styling for all cards */
.card {
    border: 1px solid #e7eaf3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 0.375rem;
}

/* Hover effect for all cards */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 168, 0.08), 
                0 4px 10px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 168, 168, 0.2);
}

/* Enhanced card header styling */
.card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafa 100%);
    border-bottom: 2px solid #e7eaf3;
    position: relative;
    transition: all 0.3s ease;
}

/* Card header with border-0 class - remove bottom border */
.card-header.border-0 {
    border-bottom: 1px solid #e7eaf3 !important;
}

/* Animated accent line for card headers */
.card-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #00a8a8, #006161);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-header::after {
    width: 100%;
}

/* Card header title styling - works globally for consistency */
.card-header-title {
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-title i {
    color: #00a8a8;
    font-size: 1.1em;
}

/* Removed corner accent - was showing on too many cards */

/* Filter/search cards - reduced lift effect */
.card:has(.card-body > form),
.filter-card,
.search-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.card:has(.card-body > form):hover,
.filter-card:hover,
.search-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Special hover effect for clickable cards */
.card.card-clickable {
    cursor: pointer;
}

.card.card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 168, 168, 0.12), 
                0 6px 12px rgba(0, 0, 0, 0.06);
}

/* Stats cards with gradient backgrounds */
.card.card-stats {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f9 100%);
}

.card.card-stats:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e6f7f7 100%);
}

/* Card footer styling */
.card-footer {
    background: rgba(248, 250, 250, 0.5);
    border-top: 1px solid #e7eaf3;
    transition: all 0.3s ease;
}

.card:hover .card-footer {
    background: rgba(240, 249, 249, 0.7);
}

/* Smooth loading animation for dynamic content */
@keyframes cardShimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.card.card-loading {
    pointer-events: none;
    position: relative;
}

.card.card-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: cardShimmer 2s infinite;
}

/* Table cards specific styling */
.card .table-responsive {
    border: none !important;
    margin: 0;
}

.card .table {
    margin-bottom: 0;
}

/* Ensure card body with table has no padding */
.card-body.p-0 {
    padding: 0 !important;
}

/* Fix for datatable-custom wrapper */
.card .card-body .datatable-custom {
    margin: 0;
    padding: 0;
}

/* Alert cards */
.card.card-alert-info {
    border-left: 4px solid #00a8a8;
    background: linear-gradient(90deg, rgba(0, 168, 168, 0.05) 0%, transparent 100%);
}

.card.card-alert-warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
}

.card.card-alert-danger {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
}

.card.card-alert-success {
    border-left: 4px solid #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}

/* ===== DASHBOARD INFO CARDS - FLOATING GLASSMORPHISM ===== */
/* Premium floating glass cards with depth and shine */
.resturant-card.dashboard--card {
    position: relative !important;
    padding: 28px 32px !important;
    border-radius: 6px !important;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    transform: translateZ(0) !important;
    
    /* Dark glass effect with strong contrast */
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.15) 0%,
                rgba(255, 255, 255, 0.1) 50%, 
                rgba(255, 255, 255, 0.05) 100%) !important;
    backdrop-filter: blur(10px) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(10px) brightness(1.1) !important;
    
    /* Visible white borders */
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    outline: 1px solid rgba(255, 255, 255, 0.1) !important;
    outline-offset: -1px !important;
    
    /* Subtle floating shadow */
    box-shadow: 
        /* Top light reflection */
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        /* Bottom inner shadow */
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.1),
        /* Floating effect */
        0 10px 20px -8px rgba(0, 0, 0, 0.2),
        0 4px 8px -3px rgba(0, 0, 0, 0.15) !important;
}

/* Glass shine overlay */
.resturant-card.dashboard--card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.25) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                transparent 100%) !important;
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Hover effect - elevated floating */
.resturant-card.dashboard--card:hover {
    transform: translateY(-4px) !important;
    
    /* Enhanced glass on hover */
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.18) 0%,
                rgba(255, 255, 255, 0.12) 50%, 
                rgba(255, 255, 255, 0.08) 100%) !important;
    
    /* Slightly brighter border on hover */
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    
    /* Tighter, more focused shadows */
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.15),
        0 12px 24px -8px rgba(0, 0, 0, 0.25),
        0 4px 8px -2px rgba(0, 0, 0, 0.15) !important;
}

/* Card variant 1 - Teal/Cyan glass */
.resturant-card.dashboard--card.card--bg-1 {
    background: linear-gradient(135deg, 
                rgba(0, 255, 204, 0.15) 0%,
                rgba(0, 168, 168, 0.1) 50%,
                rgba(0, 97, 97, 0.05) 100%) !important;
    border: 1px solid rgba(0, 255, 204, 0.15) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 0 rgba(0, 97, 97, 0.1),
        0 10px 20px -8px rgba(0, 0, 0, 0.15),
        0 4px 8px -3px rgba(0, 168, 168, 0.1) !important;
}

.resturant-card.dashboard--card.card--bg-1:hover {
    border: 1px solid rgba(0, 255, 204, 0.2) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 0 rgba(0, 97, 97, 0.15),
        0 12px 24px -8px rgba(0, 0, 0, 0.2),
        0 6px 12px -4px rgba(0, 168, 168, 0.15) !important;
}

/* Card variant 2 - Orange/Amber glass */
.resturant-card.dashboard--card.card--bg-2 {
    background: linear-gradient(135deg, 
                rgba(255, 152, 0, 0.15) 0%,
                rgba(255, 111, 0, 0.1) 50%,
                rgba(230, 81, 0, 0.05) 100%) !important;
    border: 1px solid rgba(255, 152, 0, 0.15) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 0 rgba(230, 81, 0, 0.1),
        0 10px 20px -8px rgba(0, 0, 0, 0.15),
        0 4px 8px -3px rgba(255, 111, 0, 0.1) !important;
}

.resturant-card.dashboard--card.card--bg-2:hover {
    border: 1px solid rgba(255, 152, 0, 0.2) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 0 rgba(230, 81, 0, 0.15),
        0 12px 24px -8px rgba(0, 0, 0, 0.2),
        0 6px 12px -4px rgba(255, 111, 0, 0.15) !important;
}

/* Card variant 3 - Green glass */
.resturant-card.dashboard--card.card--bg-3 {
    background: linear-gradient(135deg, 
                rgba(76, 175, 80, 0.15) 0%,
                rgba(67, 160, 71, 0.1) 50%,
                rgba(46, 125, 50, 0.05) 100%) !important;
    border: 1px solid rgba(76, 175, 80, 0.15) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 0 rgba(46, 125, 50, 0.1),
        0 10px 20px -8px rgba(0, 0, 0, 0.15),
        0 4px 8px -3px rgba(67, 160, 71, 0.1) !important;
}

.resturant-card.dashboard--card.card--bg-3:hover {
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 0 rgba(46, 125, 50, 0.15),
        0 12px 24px -8px rgba(0, 0, 0, 0.2),
        0 6px 12px -4px rgba(67, 160, 71, 0.15) !important;
}

/* Card variant 4 - Purple glass */
.resturant-card.dashboard--card.card--bg-4 {
    background: linear-gradient(135deg, 
                rgba(103, 58, 183, 0.15) 0%,
                rgba(94, 53, 177, 0.1) 50%,
                rgba(69, 39, 160, 0.05) 100%) !important;
    border: 1px solid rgba(103, 58, 183, 0.15) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 0 rgba(69, 39, 160, 0.1),
        0 10px 20px -8px rgba(0, 0, 0, 0.15),
        0 4px 8px -3px rgba(94, 53, 177, 0.1) !important;
}

.resturant-card.dashboard--card.card--bg-4:hover {
    border: 1px solid rgba(103, 58, 183, 0.2) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 0 rgba(69, 39, 160, 0.15),
        0 12px 24px -8px rgba(0, 0, 0, 0.2),
        0 6px 12px -4px rgba(94, 53, 177, 0.15) !important;
}

/* Title and subtitle styling for glassmorphism */
.dashboard--card .title,
.resturant-card .title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

/* Different title colors for each card type */
.card--bg-1 .title {
    background: linear-gradient(135deg, #006161, #00a8a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card--bg-2 .title {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card--bg-3 .title {
    background: linear-gradient(135deg, #2e8b92, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card--bg-4 .title {
    background: linear-gradient(135deg, #3aa8a8, #95e1d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard--card .subtitle,
.resturant-card .subtitle {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Icon styling with animation */
.dashboard--card .resturant-icon,
.resturant-card .resturant-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 80px;
    height: 80px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.dashboard--card:hover .resturant-icon,
.resturant-card:hover .resturant-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.5;
}

/* Alternative teal-themed cards */
.dashboard--card.card--bg-teal,
.resturant-card.card--bg-teal {
    background: linear-gradient(135deg, #00a8a8 0%, #006161 100%);
    border-color: rgba(0, 168, 168, 0.3);
}

.dashboard--card.card--bg-teal-light,
.resturant-card.card--bg-teal-light {
    background: linear-gradient(135deg, #00d4d4 0%, #00a8a8 100%);
    border-color: rgba(0, 212, 212, 0.3);
}

/* ===== ORDER STAT CARDS - GLASSMORPHISM ===== */
.order--card {
    display: block;
    padding: 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    position: relative;
    overflow: hidden;
}

.order--card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

/* Icon styling */
.order--card .oder--card-icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Title and subtitle styling */
.order--card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.order--card .card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

/* Color variants for different statuses */
.order--card .text-success {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order--card .text-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order--card .text-primary {
    background: linear-gradient(135deg, #00a8a8, #006161);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order--card .text-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLOBAL FORM CONTROL STYLING ===== */
/* Apply consistent focus styling to all form inputs */
.form-control {
    border: 1px solid #e7eaf3;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #00a8a8;
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.15);
    outline: none;
}

.form-control:hover:not(:focus):not(:disabled):not([readonly]) {
    border-color: #00a8a8;
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1);
}

/* Textarea specific adjustments */
textarea.form-control {
    resize: vertical;
}

/* File input styling */
input[type="file"].form-control {
    padding: 8px 12px;
}

input[type="file"].form-control:focus {
    border-color: #00a8a8;
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.15);
}

/* Disabled state for form controls */
.form-control:disabled,
.form-control[readonly] {
    background-color: #f8f9fa;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Input group styling to match */
.input-group-text {
    border: 1px solid #e7eaf3;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    border-color: #00a8a8;
}

/* ===== CUSTOM CHECKBOX STYLING ===== */
/* Global custom checkbox styling to match form theme */
.custom-checkbox {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #e7eaf3;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #00a8a8;
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #00a8a8;
    border-color: #00a8a8;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox input:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.15);
}

.custom-checkbox input:disabled ~ .checkmark {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.custom-checkbox input:disabled ~ .checkbox-label {
    color: #adb5bd;
    cursor: not-allowed;
}

.checkbox-label {
    margin-left: 8px;
    color: #677788;
}

/* ===== CUSTOM RADIO BUTTON STYLING ===== */
/* Global custom radio button styling to match form theme */
.custom-radio {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-radio .radio-mark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #e7eaf3;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-radio:hover input ~ .radio-mark {
    border-color: #00a8a8;
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1);
}

.custom-radio input:checked ~ .radio-mark {
    border-color: #00a8a8;
}

.custom-radio .radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00a8a8;
}

.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}

.custom-radio input:focus ~ .radio-mark {
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.15);
}

.custom-radio input:disabled ~ .radio-mark {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.custom-radio input:disabled ~ .radio-label {
    color: #adb5bd;
    cursor: not-allowed;
}

.radio-label {
    margin-left: 8px;
    color: #677788;
}

/* ===== CUSTOM DROPDOWN COMPONENT ===== */

/* Fix for cards clipping dropdown - when dropdown is open, remove overflow from parent cards */
.card:has(.custom-dropdown-wrapper.open) {
    overflow: visible !important;
    position: relative;
    z-index: 1050 !important; /* Elevate the card when dropdown is open */
}

.card-body:has(.custom-dropdown-wrapper.open) {
    overflow: visible !important;
}

/* Ensure form groups don't create new stacking contexts */
.form-group:has(.custom-dropdown-wrapper.open) {
    position: relative;
    z-index: auto !important;
}

/* Custom Styled Dropdown Component */
.custom-dropdown-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
}

/* Custom dropdown display (replaces select) */
.custom-dropdown-display {
    width: 100%;
    height: 45px;
    padding: 10px 40px 10px 15px;
    border: 1px solid #e7eaf3;
    border-radius: 5px;
    background: white;
    color: #677788;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    user-select: none;
}

.custom-dropdown-display:hover {
    border-color: #00a8a8;
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1);
}

.custom-dropdown-wrapper.open .custom-dropdown-display {
    border-color: #00a8a8;
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.15);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Custom arrow */
.custom-dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #006161;
    transition: transform 0.3s ease;
}

.custom-dropdown-wrapper.open .custom-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Custom dropdown list */
.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #00a8a8;
    border-top: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow: hidden; /* Changed from overflow-y: auto to overflow: hidden */
    z-index: 9999 !important; /* Increased z-index with !important to ensure it appears above everything */
    display: none;
}

/* Ensure dropdown list stays on top even when form controls have focus */
.form-control:focus ~ .custom-dropdown-list,
.custom-dropdown-wrapper:has(.form-control:focus) .custom-dropdown-list {
    z-index: 10000 !important;
}

.custom-dropdown-list.show {
    display: block;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Options container for scrolling */
.custom-dropdown-options {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* When search is present, adjust options container height */
.custom-dropdown-list:has(.custom-dropdown-search) .custom-dropdown-options {
    max-height: 200px; /* Reduce height to account for search box */
}

/* Custom dropdown options */
.custom-dropdown-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    color: #677788;
    font-size: 14px;
}

.custom-dropdown-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.custom-dropdown-option:hover {
    background: linear-gradient(90deg, rgba(0, 168, 168, 0.08) 0%, rgba(0, 168, 168, 0.03) 100%);
    padding-left: 20px;
    color: #006161;
}

.custom-dropdown-option.selected {
    background: #f0f9f9;
    color: #006161;
    font-weight: 500;
    position: relative;
    padding-left: 35px;
}

.custom-dropdown-option.selected::before {
    content: "✓";
    position: absolute;
    left: 15px;
    color: #00a8a8;
    font-weight: bold;
}

/* Search box styling */
.custom-dropdown-search {
    padding: 8px;
    border-bottom: 1px solid #e7eaf3;
    background: #f8f9fa;
}

.custom-dropdown-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e7eaf3;
    border-radius: 3px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.custom-dropdown-search-input:focus {
    border-color: #00a8a8;
    box-shadow: 0 0 0 2px rgba(0, 168, 168, 0.1);
}

/* Multi-select specific styles */
.custom-dropdown-multiple .custom-dropdown-display {
    min-height: 45px;
    height: auto;
    padding: 5px 40px 5px 5px;
}

.custom-dropdown-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    width: calc(100% - 30px);
}

.custom-dropdown-placeholder {
    color: #999;
    padding: 5px 10px;
    font-size: 14px;
}

.custom-dropdown-tag {
    display: inline-flex;
    align-items: center;
    background: #00a8a8;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 13px;
    gap: 5px;
}

.custom-dropdown-tag-remove {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.custom-dropdown-tag-remove:hover {
    opacity: 1;
}

/* Multi-select option with checkmark */
.custom-dropdown-multiple .custom-dropdown-option.selected::before {
    content: "✓";
    position: absolute;
    left: 15px;
    color: #00a8a8;
    font-weight: bold;
}

.custom-dropdown-multiple .custom-dropdown-option.selected {
    padding-left: 35px;
}

/* Scrollbar styling */
.custom-dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb {
    background: #00a8a8;
    border-radius: 3px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #006161;
}

/* Disabled state */
.custom-dropdown-wrapper.disabled .custom-dropdown-display,
.custom-dropdown-display.disabled {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
}

.custom-dropdown-wrapper.disabled .custom-dropdown-arrow {
    opacity: 0.5;
}

/* Dark theme support (if needed in future) */
.dark-mode .custom-dropdown-display {
    background: #2d3135;
    border-color: #495057;
    color: #e9ecef;
}

.dark-mode .custom-dropdown-display:hover {
    border-color: #00a8a8;
}

.dark-mode .custom-dropdown-arrow {
    border-top-color: #00a8a8;
}

.dark-mode .custom-dropdown-list {
    background: #2d3135;
    border-color: #495057;
}

.dark-mode .custom-dropdown-option {
    color: #e9ecef;
    border-bottom-color: #495057;
}

.dark-mode .custom-dropdown-option:hover {
    background: rgba(0, 168, 168, 0.15);
    color: #00d4d4;
}

.dark-mode .custom-dropdown-option.selected {
    background: rgba(0, 168, 168, 0.2);
    color: #00d4d4;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .custom-dropdown-display {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* ========================================
   USER PROFILE DROPDOWN BUTTON HOVER EFFECT
   ======================================== */
.navbar-dropdown-account-wrapper {
    position: relative;
    padding: 0.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.navbar-dropdown-account-wrapper:hover {
    background: linear-gradient(135deg, 
                rgba(0, 168, 168, 0.08) 0%,
                rgba(0, 97, 97, 0.05) 100%);
    border: 1px solid rgba(0, 168, 168, 0.2);
    box-shadow: 0 2px 8px rgba(0, 168, 168, 0.15);
    transform: translateY(-1px);
}

.navbar-dropdown-account-wrapper:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 168, 168, 0.2);
}

.navbar-dropdown-account-wrapper .avatar {
    transition: transform 0.3s ease;
}

.navbar-dropdown-account-wrapper:hover .avatar {
    transform: scale(1.05);
}
/* ========================================
   END OF USER PROFILE DROPDOWN HOVER EFFECT
   ======================================== */

/* ========================================
   PROFILE COVER BORDER RADIUS FIX
   ======================================== */
.profile-cover .profile-cover-img-wrapper {
    border-radius: 4px !important;
}
/* ========================================
   END OF PROFILE COVER BORDER RADIUS FIX
   ======================================== */

