:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-bg: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #e0e0e0;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

/* Base Styles */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 15px;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
}

.navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand, .nav-link {
    color: #fff !important;
    font-weight: 600;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: white;
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    font-weight: bold;
    border-radius: 15px 15px 0 0 !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-success {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    border: none;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
    transition: all 0.3s ease;
    color: white;
}
.btn-success:hover { transform: translateY(-2px); }

/* Forms */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}
.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 107, 0.25);
    border-color: #ff6b6b;
}

/* Fix for Select Options background */
option {
    background-color: #1a1a2e;
    color: white;
}

/* Select2 Custom Dark Theme */
.select2-container--classic .select2-selection--single {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.25rem;
    height: 38px; /* Match form-control height */
    outline: none !important;
}
.select2-container--classic .select2-selection--single:focus {
    border-color: #ff6b6b !important;
}
.select2-container--classic.select2-container--open .select2-selection--single {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.select2-container--classic .select2-selection--single .select2-selection__rendered {
    color: white !important;
    line-height: 36px;
    background: transparent !important;
}
.select2-container--classic .select2-selection--single .select2-selection__arrow {
    background: transparent !important;
    border-left: none !important;
    background-image: none !important;
    height: 36px;
}
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent !important;
}

/* Dropdown */
.select2-dropdown {
    background-color: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white;
}
.select2-container--classic .select2-search--dropdown .select2-search__field {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
    background-color: #ff6b6b !important;
    color: white !important;
}
.select2-results__option {
    color: white;
}

/* General */
.table { color: #fff; vertical-align: middle; }
.badge-sell { background: linear-gradient(45deg, #ff6b6b, #ee0979); }
.badge-buy { background: linear-gradient(45deg, #4ecdc4, #556270); }

/* Modal */
.modal-content {
    background-color: #262640;
    color: white;
    border: 1px solid var(--glass-border);
}
.modal-header, .modal-footer { border-color: var(--glass-border); }

.fruit-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 5px;
}

/* Level Styles */
.glass-card-basic { box-shadow: 0 4px 15px rgba(108, 117, 125, 0.1); border-left: 5px solid #6c757d; }
.glass-card-pro { box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2); border-left: 5px solid #0d6efd; background: linear-gradient(90deg, rgba(13, 110, 253, 0.1) 0%, rgba(255,255,255,0.05) 100%); }

/* VIP Enhanced */
.glass-card-vip {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-left: 5px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(30, 30, 30, 0.8) 100%);
    position: relative;
    overflow: hidden;
}
/* Shine animation for VIP */
.glass-card-vip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transform: skewX(-20deg);
    animation: shine-vip 3s infinite;
    pointer-events: none;
}
@keyframes shine-vip {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* ADMIN Enhanced */
.glass-card-admin {
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.4);
    border: 1px solid rgba(255, 71, 87, 0.6);
    border-left: 5px solid #ff4757;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    position: relative;
    overflow: hidden;
}
.glass-card-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 71, 87, 0.3), transparent);
    transform: skewX(-20deg);
    animation: shine-admin 4s infinite linear;
    pointer-events: none;
}
@keyframes shine-admin {
    0% { left: -150%; }
    100% { left: 150%; }
}

.level-icon { margin-left: 5px; }
.level-basic { color: #6c757d; }
.level-pro { color: #0d6efd; }
.level-vip { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.6); font-weight: bold; }
.level-admin { color: #ff4757; text-shadow: 0 0 15px rgba(255, 71, 87, 0.8); font-weight: bold; letter-spacing: 0.5px; }

.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); }
.modal-body textarea { background-color: rgba(255, 255, 255, 0.9) !important; color: #333 !important; border: 1px solid #ccc; font-weight: 500; font-size: 1.1em; }
