.form-add-button {
    color: black;
    padding-top: .2rem !important;
    padding-bottom: .2rem !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    transition-duration: .2s;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    font-weight: 500;
    border: 1px solid;
    border-radius: .5rem;
    justify-content: center;
    align-items: center;
    display: inline-flex
}

.form-add-button:hover {
    color: white;
    background-color: black;
}

.modal-background {
    background-color: #8a8c8f73;
}

.sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sm\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sm\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Premium Dashboard Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -15%;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(8px);
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-6px);
}

.stat-card:hover::before {
    transform: scale(1.3) translate(-15px, 15px);
}

/* Card Gradient Themes with Neon Shadow Glows */
.card-employees {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.card-employees:hover {
    box-shadow: 0 20px 30px -5px rgba(79, 70, 229, 0.55);
}

.card-companies {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    box-shadow: 0 10px 20px -5px rgba(244, 63, 94, 0.3);
}

.card-companies:hover {
    box-shadow: 0 20px 30px -5px rgba(244, 63, 94, 0.55);
}

.card-departments {
    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
}

.card-departments:hover {
    box-shadow: 0 20px 30px -5px rgba(16, 185, 129, 0.55);
}

.card-members {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.3);
}

.card-members:hover {
    box-shadow: 0 20px 30px -5px rgba(6, 182, 212, 0.55);
}

.card-interviews {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.3);
}

.card-interviews:hover {
    box-shadow: 0 20px 30px -5px rgba(139, 92, 246, 0.55);
}

/* Card Inner Typography */
.stat-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-card-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    font-family: 'Figtree', sans-serif;
    letter-spacing: -0.02em;
}

/* Glassmorphic Icon Container */
.stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.125rem;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-card-icon {
    transform: rotate(-8deg) scale(1.12);
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Custom Responsive Grid for Stats */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    /* Mobile: 1 card per row */
}

/* Tablet view: 3 cards per row */
@media (min-width: 640px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Desktop view: 1 row for all cards (4 cols for admin, 3 cols for team member) */
@media (min-width: 1024px) {
    .dashboard-grid.grid-admin {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

/* Global Mobile Responsiveness Constraints & Select2 Fix */
html,
body {
    overflow-x: hidden !important;
    width: 100%;
}

.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Premium Select2 Styling - Small & Filled Input Design */
.select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    /* Active white background */
    border: 1px solid #d1d5db !important;
    /* Gray-300 border */
    border-radius: 0.5rem !important;
    /* rounded-lg */
    height: 38px !important;
    /* Compact/small height */
    padding: 0.25rem 0.5rem !important;
    transition: all 0.2s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
}

/* Hover state */
.select2-container--default .select2-selection--single:hover {
    border-color: #9ca3af !important;
    /* gray-400 */
}

/* Active/Focused state */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #4f46e5 !important;
    /* Indigo-500 */
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
    /* focus-ring */
    background-color: #ffffff !important;
}

/* Text alignment & styling */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #374151 !important;
    /* text-gray-700 */
    font-size: 0.875rem !important;
    /* text-sm (small) */
    line-height: 28px !important;
    padding-left: 0.5rem !important;
    font-weight: 500 !important;
    width: 100% !important;
}

/* Dropdown arrow alignment */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    right: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
    /* Gray-500 arrow */
    border-width: 5px 4px 0 4px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6b7280 transparent !important;
    border-width: 0 4px 5px 4px !important;
}

/* Dropdown menu list styling */
.select2-dropdown {
    border-color: #e5e7eb !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

.select2-container--default .select2-results__option {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    color: #4b5563 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4f46e5 !important;
    /* Indigo-500 */
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f3f4f6 !important;
    /* gray-100 */
    color: #111827 !important;
    font-weight: 600 !important;
}

/* Premium Filter Panel Styles */
.filter-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
    overflow: visible;       /* allow absolute dropdowns to escape the card boundary */
    position: relative;      /* establish stacking context for z-index */
    z-index: 1;              /* base layer — dropdowns will sit above at z-index 9999 */
}

.filter-card:hover {
    box-shadow: 0 8px 30px -2px rgba(0, 0, 0, 0.08);
}

.filter-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Sleek Date Input Styling */
.sleek-date-input {
    width: 100%;
    height: 38px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    outline: none;
}

.sleek-date-input:hover {
    border-color: #9ca3af;
}

.sleek-date-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Preset Buttons */
.preset-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.preset-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.preset-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    border-color: #d1d5db;
}

.preset-btn.active {
    background-color: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.clear-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #ef4444;
    border: 1px solid #fee2e2;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.clear-btn:hover {
    background-color: #fee2e2;
}

.apply-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background-color: #4f46e5;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.apply-btn:hover {
    background-color: #4338ca;
}

/* Visual Premium Gradients for Status Cards */
.card-placed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.3);
}
.card-placed:hover {
    box-shadow: 0 20px 30px -5px rgba(5, 150, 105, 0.55);
}

.card-didnotjoin {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.3);
}
.card-didnotjoin:hover {
    box-shadow: 0 20px 30px -5px rgba(234, 88, 12, 0.55);
}

.card-yettojoin {
    background: linear-gradient(135deg, #3b82f6 0%, #0284c7 100%);
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.3);
}
.card-yettojoin:hover {
    box-shadow: 0 20px 30px -5px rgba(2, 132, 199, 0.55);
}

.card-pending {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.3);
}
.card-pending:hover {
    box-shadow: 0 20px 30px -5px rgba(124, 58, 237, 0.55);
}

.card-notselected {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.3);
}
.card-notselected:hover {
    box-shadow: 0 20px 30px -5px rgba(225, 29, 72, 0.55);
}

/* Charts Panel Layout */
.charts-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.chart-wrapper {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.chart-wrapper:hover {
    box-shadow: 0 8px 30px -2px rgba(0, 0, 0, 0.08);
}

.chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-title i {
    color: #4f46e5;
}

/* Sleek Square Checkbox */
.sleek-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px !important;
    outline: none;
    background-color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.sleek-checkbox:hover {
    border-color: #94a3b8;
}

.sleek-checkbox:checked {
    border-color: #4f46e5;
    background-color: #4f46e5;
    background-image: none !important; /* Prevents Tailwind SVG double checkmark */
}

.sleek-checkbox:checked::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 1px;
    left: 5px;
}

/* Sleek Filter Layout Rows & Columns */
.sleek-filter-row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .sleek-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sleek-filter-span-2 {
    grid-column: span 1 / span 1;
}

@media (min-width: 768px) {
    .sleek-filter-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Sleek Search Box Styles */
.sleek-search-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.sleek-search-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.825rem;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.sleek-search-input {
    width: 100% !important;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem !important; /* Proper padding to avoid overlap */
    font-size: 0.825rem !important;
    background-color: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.sleek-search-input:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 1px #4f46e5 !important;
}

/* Sleek Checkbox Grid */
.sleek-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    max-height: 12rem;
    overflow-y: auto;
    padding-top: 0.25rem;
}

@media (min-width: 640px) {
    .sleek-checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sleek-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.sleek-checkbox-item:hover {
    color: #4f46e5;
}

/* =============================================
   Filter Dropdown Hover Styles
   ============================================= */

/* Wrapper — position relative so panel drops below */
.filter-dropdown-wrapper {
    position: relative;
}

/* Toggle Button */
.filter-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: default;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.filter-dropdown-toggle:hover,
.filter-dropdown-wrapper:hover .filter-dropdown-toggle {
    border-color: #a5b4fc;
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}

.filter-dropdown-toggle[aria-expanded="true"] {
    border-color: #4f46e5;
    background: #f5f3ff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

/* Left side of button: icon + label text + badge */
.filter-dropdown-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Label text inside the toggle */
.filter-label-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Count badge shown when items are selected */
.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    background: #4f46e5;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9999px;
    line-height: 1;
}

/* Chevron icon — rotates on open */
.filter-chevron {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s ease;
}

.filter-chevron.open {
    transform: rotate(180deg);
    color: #4f46e5;
}

/* Dropdown Panel — floats above ALL other cards */
.filter-dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 9999;           /* must be above every other card/section */
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px -4px rgba(0,0,0,0.18), 0 4px 12px -2px rgba(79,70,229,0.08);
    overflow: hidden;
    /* No CSS animation — jQuery slideDown handles the reveal */
}

/* Invisible gap bridge between toggle and panel so mouse hover doesn't break */
.filter-dropdown-panel::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

/* Inner padding of the dropdown panel */
.filter-dropdown-inner {
    padding: 0.875rem 1rem;
}
