:root {
    color-scheme: dark;
    --bg-base: #09090b;
    --glass-bg: rgba(24, 24, 27, 0.45);
    --glass-bg-dark: rgba(15, 15, 17, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    --accent-gold: #d4af37;
    --accent-gold-hover: #f1cd57;
    --accent-gold-glow: rgba(212, 175, 55, 0.3);

    --success: #2e7d32;
    --success-bg: rgba(46, 125, 50, 0.15);
    --danger: #c62828;
    --danger-bg: rgba(198, 40, 40, 0.15);
    --warning: #f57f17;
    --warning-bg: rgba(245, 127, 23, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --surface-bg: rgba(0, 0, 0, 0.2);
    --surface-bg-hover: rgba(255, 255, 255, 0.05);
    --surface-bg-dark: rgba(0, 0, 0, 0.3);
    --surface-bg-focus: rgba(0, 0, 0, 0.4);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-base: #f4f4f5;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-dark: rgba(240, 240, 245, 0.75);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-border-hover: rgba(0, 0, 0, 0.2);

    --text-primary: #18181b;
    --text-secondary: #52525b;

    --accent-gold: #b38e21;
    --accent-gold-hover: #d4af37;
    --accent-gold-glow: rgba(179, 142, 33, 0.25);

    --success: #2e7d32;
    --success-bg: rgba(46, 125, 50, 0.15);
    --danger: #c62828;
    --danger-bg: rgba(198, 40, 40, 0.15);
    --warning: #f57f17;
    --warning-bg: rgba(245, 127, 23, 0.15);

    --surface-bg: rgba(255, 255, 255, 0.5);
    --surface-bg-hover: rgba(255, 255, 255, 0.8);
    --surface-bg-dark: rgba(255, 255, 255, 0.7);
    --surface-bg-focus: rgba(255, 255, 255, 0.9);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Background Animations */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    /* Interactive Mouse-Tracking Luxury Spotlight */
    background: radial-gradient(400px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(212, 175, 55, 0.08), transparent 40%);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #d4af37, transparent 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b6b23, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 40px) scale(1.1);
    }
}

/* Base Glass Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-panel-dark {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    margin: 24px 0 24px 24px;
    height: fit-content;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar.collapsed {
    margin-left: -280px;
    /* Genişliği (280px) kadar negatif vererek sıfırlama, padding ile main-content ferah kalsın */
    opacity: 0;
    visibility: hidden;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo {
    max-width: 130px;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: 0 0 20px var(--accent-gold-glow);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.sidebar-logo h2 {
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 24px;
    text-shadow: 0 0 20px var(--accent-gold-glow);
}

.sidebar-logo p {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: var(--transition);
    font-size: 15px;
    font-weight: 500;
    gap: 12px;
}

.nav-link i {
    font-size: 20px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

.logout-btn {
    margin-top: auto;
    color: #ff5252;
}

.logout-btn:hover {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    border-left: 3px solid #ff5252;
}

/* Main Content Styling */
.main-content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    height: 100vh;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 30px;
    border-radius: var(--radius-lg);
}

.app-header h1 {
    font-weight: 500;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-role-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* UI Elements */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-title {
    margin-bottom: 20px;
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-size: 20px;
}

.input-icon-wrapper input {
    padding-left: 45px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--surface-bg-focus);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

input[type="file"].form-control {
    padding: 9px 18px 9px 45px;
    cursor: pointer;
    color: var(--text-secondary);
}

input[type="file"]::file-selector-button {
    margin-right: 15px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"]::file-selector-button:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

select.form-control option {
    background-color: var(--bg-base);
    color: var(--text-primary);
    padding: 12px;
}

/* Login Specific */
.login-body {
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    position: z-index 10;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.error-badge {
    background: var(--danger-bg);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.3);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Stats Matrix */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--surface-bg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gold);
    opacity: 0.5;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
}

.stat-box h3 {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-box span {
    font-size: 32px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -1px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 10px;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
}

.data-table th {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.data-table tbody tr {
    background: var(--surface-bg);
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
    transform: scale(1.01);
}

.data-table td:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.data-table td:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 127, 23, 0.3);
}

.badge-approved {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-completed {
    background: var(--success-bg);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-cancelled {
    background: var(--danger-bg);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

/* Tab Navigation */
.tabs-container {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0px;
}

.tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    background: linear-gradient(to top, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Common Utilities */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: var(--text-secondary);
    gap: 15px;
    font-size: 16px;
}

.loading-state i {
    font-size: 32px;
    color: var(--accent-gold);
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Date/Time Picker Components */
.date-cards-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
}

.date-cards-wrapper::-webkit-scrollbar {
    height: 6px;
}

.date-cards-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 15px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--surface-bg-dark);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.date-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    background: rgba(212, 175, 55, 0.05);
}

.date-card.active {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.date-card .day-name {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 500;
}

.date-card .day-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.date-card .month-name {
    font-size: 12px;
    color: var(--accent-gold);
    margin-top: 5px;
    font-weight: 500;
}

.time-slots-wrapper {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
    display: none;
}

.time-slot {
    padding: 12px 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--surface-bg-dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
}

.time-slot:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.time-slot.active {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Custom Action Inputs */
.action-select {
    padding: 8px 12px;
    font-size: 13px;
    background: var(--surface-bg-focus);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.action-select:focus {
    border-color: var(--accent-gold);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 15px;
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(24px);
    }

    .sidebar-logo {
        margin-bottom: 0;
        text-align: left;
        grid-column: 1;
        grid-row: 1;
    }

    .sidebar-logo h2 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .logout-btn {
        margin-top: 0;
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        padding: 8px 12px;
        border: 1px solid rgba(255, 82, 82, 0.3);
        font-size: 13px;
        border-radius: var(--radius-md);
    }

    #nav-container {
        grid-column: 1 / span 2;
        grid-row: 2;
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px;
    }

    #nav-container::-webkit-scrollbar {
        height: 4px;
    }

    #nav-container::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.5);
        border-radius: 4px;
    }

    .nav-link {
        white-space: nowrap;
        margin-bottom: 0;
        padding: 10px 15px;
        font-size: 13px;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid var(--glass-border);
    }

    .nav-link.active {
        background: var(--accent-gold);
        color: #000;
        border-left: none;
    }

    .nav-link:hover:not(.active) {
        border-left: none;
        border-color: var(--accent-gold);
    }

    .main-content {
        padding: 20px 15px;
        height: auto;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .app-header h1 {
        font-size: 20px;
    }

    .card {
        padding: 20px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .data-table th,
    .data-table td {
        white-space: nowrap;
        font-size: 13px;
        padding: 12px;
    }

    .login-wrapper {
        padding: 15px;
    }

    .login-card {
        padding: 30px 20px;
    }
}

/* Masterpiece Custom Select Logic for Poseidon */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    display: block;
}

.custom-select-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--surface-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 40px;
    width: 100% !important;
    min-height: 50px !important;
}

/* Hide original select completely */
select.customized-select {
    display: none !important;
}

.custom-select-trigger:hover,
.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 195, 0, 0.15);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: var(--bg-base);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 8px;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-options::-webkit-scrollbar {
    width: 5px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 195, 0, 0.4);
    border-radius: 5px;
}

.custom-select-option {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--glass-border);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover,
.custom-select-option.selected {
    background: rgba(255, 195, 0, 0.15);
    color: var(--text-primary);
    padding-left: 22px;
    border-left: 3px solid var(--accent-gold);
}

/* Compact Select Styles for Tables */
.compact-select-wrapper {
    width: auto;
    min-width: 150px;
    display: inline-block;
    position: relative;
}

.action-select-custom {
    padding: 6px 12px;
    min-height: 32px !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--surface-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-select-custom:hover,
.custom-select-wrapper.open .action-select-custom {
    border-color: var(--accent-gold);
}

.compact-select-wrapper .custom-select-options {
    margin-top: 5px;
}

.custom-select-wrapper.open {
    z-index: 99999 !important;
}

tr:has(.custom-select-wrapper.open),
td:has(.custom-select-wrapper.open) {
    z-index: 99999 !important;
    position: relative;
}