/* --- UNIFIED GLASS CONTAINER (Form & Leaderboard Wrapper) --- */
.vbt-leaderboard-wrapper, 
#vbt-form {
    background: rgba(255, 255, 255, 0.03) !important; /* Translucent Glass */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    color: #f4f4f9 !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 20px auto;
    display: block !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

#vbt-form {
    max-width: 500px !important;
    display: flex !important;
    flex-direction: column;
    gap: 15px;
}

/* --- DROPDOWN & INPUT STYLING --- */
#vbt-form select, 
#vbt-form input[type="number"] {
    background-color: rgba(15, 23, 42, 0.8) !important; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300e0ff' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 16px !important;
    
    border: 1px solid rgba(0, 224, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 14px 40px 14px 15px !important;
    
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100% !important;
}

#vbt-form select option {
    background-color: #1a1c23 !important;
    color: #ffffff !important;
    padding: 10px !important;
}

#vbt-form select:hover, 
#vbt-form input:hover {
    border-color: rgba(0, 224, 255, 0.5) !important;
    background-color: rgba(20, 30, 50, 0.9) !important;
}

#vbt-form select:focus, 
#vbt-form input:focus {
    border-color: #00e0ff !important;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.25) !important;
}

/* --- MODERN TABLE STYLING --- */
.vbt-modern-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
    border: none !important;
}

.vbt-modern-table thead th {
    padding: 10px 15px;
    color: #888;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.2px;
    border: none !important;
    text-align: left;
}

.vbt-modern-table tbody tr {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* UPDATED: Frosted Glass Hover Effect (Lighter & more visible) */
.vbt-modern-table tbody tr:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12) !important; /* Lighter white transparency */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); 
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.vbt-modern-table td {
    padding: 15px 15px !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.vbt-modern-table td:first-child {
    border-left: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px 0 0 12px !important;
    font-weight: 800;
    color: #00e0ff;
}

.vbt-modern-table td:last-child {
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 0 12px 12px 0 !important;
}

/* --- BUTTONS --- */
.vbt-btn-main, #vbt-form button[type="submit"] {
    background: linear-gradient(135deg, #00e0ff 0%, #0074ff 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 116, 255, 0.3) !important;
    width: 100%;
}

.vbt-btn-main:hover, #vbt-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 116, 255, 0.5) !important;
    filter: brightness(1.1);
}

.vbt-btn-secondary {
    background: rgba(0, 224, 255, 0.05) !important;
    border: 1px dashed rgba(0, 224, 255, 0.4) !important;
    color: #00e0ff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    cursor: pointer;
    font-weight: 600 !important;
    width: 100%;
    margin-bottom: 10px;
}

/* --- SLIP ITEMS & BADGES --- */
.vbt-slip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 224, 255, 0.2);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
}

.vbt-units-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #fcc446;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- STATUS & PERFORMANCE COLORS --- */
.vbt-status-win { color: #00ff85; font-weight: bold; }
.vbt-status-loss { color: #ff4b4b; font-weight: bold; }
.vbt-status-pending { color: #fcc446; font-weight: bold; }
.vbt-selection { color: #00e0ff; font-weight: 600; text-transform: uppercase; }
.vbt-pos { color: #00ff85; text-shadow: 0 0 10px rgba(0,255,133,0.3); }
.vbt-neg { color: #ff4b4b; text-shadow: 0 0 10px rgba(255,75,75,0.3); }

/* --- REMOVE BUTTON --- */
.vbt-remove {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    line-height: 22px;
    padding: 0;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .vbt-modern-table td {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
    .vbt-leaderboard-wrapper {
        padding: 15px 5px !important;
    }
}