/* ===== Bankroll Parnassus — tema neon fucsia 3D (contrasto alto) ===== */

#bp-app-root, .bp-login-wrap {
    --bp-bg: #0c0116;
    --bp-bg2: #1c0830;
    --bp-fuchsia: #ff2ee0;
    --bp-fuchsia2: #e100ff;
    --bp-violet: #9147ff;
    --bp-cyan: #00e5ff;
    --bp-gold: #ffd23f;
    --bp-red: #ff5577;
    --bp-green: #17ffb8;
    --bp-text: #ffffff;
    --bp-text-dim: #e3cdf5;
    --bp-text-label: #c9a3e8;
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    color: var(--bp-text);
    perspective: 1400px;
}

.bp-wrap {
    background: radial-gradient(circle at 15% 0%, #33094d 0%, var(--bp-bg) 55%), var(--bp-bg);
    min-height: 100vh;
    margin: -10px -20px -20px -22px;
    padding: 30px 34px 60px;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

.bp-wrap::before {
    content: "";
    position: absolute;
    top: -200px; left: -200px; right: -200px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(255,46,224,0.20) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Titolo neon ---- */
.bp-neon-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    background: linear-gradient(90deg, var(--bp-fuchsia), var(--bp-cyan), var(--bp-fuchsia2));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bp-shine 4s linear infinite;
    text-shadow: 0 0 30px rgba(255,46,224,0.35);
}
@keyframes bp-shine {
    to { background-position: 200% center; }
}

.bp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}
.bp-logout-link {
    color: var(--bp-text);
    text-decoration: none;
    border: 1px solid rgba(255,46,224,0.5);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    transition: all .25s ease;
}
.bp-logout-link:hover {
    background: rgba(255,46,224,0.2);
    box-shadow: 0 0 14px rgba(255,46,224,0.5);
}

/* ---- Card 3D glass ---- */
.bp-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,46,224,0.3);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bp-3d:hover {
    border-color: rgba(255,46,224,0.7);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55), 0 0 25px rgba(225,0,255,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ---- Stats ---- */
.bp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}
.bp-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--bp-text-label);
    font-weight: 700;
    margin-bottom: 8px;
}
.bp-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--bp-text);
}
.bp-stat-value.bp-pos { color: var(--bp-green); text-shadow: 0 0 16px rgba(23,255,184,0.5); }
.bp-stat-value.bp-neg { color: var(--bp-red); text-shadow: 0 0 16px rgba(255,85,119,0.5); }

/* ---- Filtri ---- */
.bp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}
.bp-filters select {
    background: var(--bp-bg2);
    color: var(--bp-text);
    border: 1px solid rgba(255,46,224,0.45);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}
.bp-filters select:focus { border-color: var(--bp-fuchsia); }

.bp-btn {
    background: rgba(255,255,255,0.1);
    color: var(--bp-text);
    border: 1px solid rgba(255,46,224,0.5);
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
.bp-btn:hover { background: rgba(255,46,224,0.22); }
.bp-btn-glow {
    background: linear-gradient(135deg, var(--bp-fuchsia2), var(--bp-violet));
    border: none;
    color: #fff;
    box-shadow: 0 0 18px rgba(225,0,255,0.6);
}
.bp-btn-glow:hover {
    box-shadow: 0 0 30px rgba(225,0,255,0.9);
    transform: translateY(-1px);
}
.bp-btn-small {
    background: rgba(255,46,224,0.2);
    border: 1px solid rgba(255,46,224,0.5);
    color: #fff;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 800;
    flex-shrink: 0;
}
.bp-filters .bp-btn-glow { margin-left: auto; }

/* ---- Grafici ---- */
.bp-charts-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 18px;
    margin-bottom: 22px;
}
.bp-chart-card h3 { margin: 0 0 14px; font-size: 14px; color: var(--bp-text-label); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.bp-chart-card canvas { max-height: 260px; }

/* ---- Tabella ---- */
.bp-table-card h3 { margin: 0 0 14px; font-size: 14px; color: var(--bp-text-label); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.bp-table-scroll { max-height: 420px; overflow-y: auto; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--bp-text); }
.bp-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--bp-text-label);
    font-weight: 700;
    border-bottom: 1px solid rgba(255,46,224,0.3);
    position: sticky; top: 0;
    background: var(--bp-bg2);
    z-index: 1;
}
.bp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--bp-text);
}
.bp-table tr:hover td { background: rgba(255,46,224,0.1); }
.bp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.bp-badge-cash { background: rgba(0,229,255,0.2); color: #7cf3ff; border: 1px solid rgba(0,229,255,0.5); }
.bp-badge-torneo { background: rgba(255,210,63,0.2); color: #ffe38a; border: 1px solid rgba(255,210,63,0.5); }
.bp-result-pos { color: var(--bp-green); font-weight: 800; }
.bp-result-neg { color: var(--bp-red); font-weight: 800; }
.bp-row-actions { display: flex; gap: 10px; }
.bp-edit-btn, .bp-del-btn {
    background: none;
    border: none;
    color: var(--bp-text-label);
    cursor: pointer;
    font-size: 15px;
}
.bp-edit-btn:hover { color: var(--bp-cyan); }
.bp-del-btn:hover { color: var(--bp-red); }

/* ---- Password card ---- */
.bp-pwd-card { margin-top: 22px; max-width: 420px; }
.bp-pwd-form { display: flex; gap: 10px; margin-top: 10px; }
.bp-pwd-ok { color: var(--bp-green); margin-top: 10px; font-size: 13px; font-weight: 600; }

/* ---- Input generici ---- */
.bp-input {
    background: var(--bp-bg2);
    color: var(--bp-text);
    border: 1px solid rgba(255,46,224,0.45);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}
.bp-input::placeholder { color: #a980c7; opacity: 1; }
.bp-input:focus { border-color: var(--bp-fuchsia); box-shadow: 0 0 12px rgba(255,46,224,0.35); }

/* ---- Login screen ---- */
.bp-login-wrap {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #2d0740 0%, var(--bp-bg) 70%);
    margin: -10px -20px -20px -22px;
}
.bp-login-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,46,224,0.45);
    border-radius: 22px;
    padding: 46px 42px;
    width: 360px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(225,0,255,0.3);
    animation: bp-float 5s ease-in-out infinite;
}
@keyframes bp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.bp-login-icon { font-size: 40px; margin-bottom: 6px; filter: drop-shadow(0 0 12px rgba(255,46,224,0.7)); }
.bp-login-sub { color: var(--bp-text-dim); margin: 6px 0 24px; font-weight: 600; }
.bp-login-error { color: var(--bp-red); font-size: 13px; margin-bottom: 14px; font-weight: 700; }
.bp-login-box form { display: flex; flex-direction: column; gap: 14px; }

/* ---- Modale nuova/modifica sessione ---- */
.bp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,0,12,0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.bp-modal-overlay.bp-open { display: flex; }
.bp-modal {
    background: linear-gradient(160deg, #250a38, #14032a);
    border: 1px solid rgba(255,46,224,0.5);
    border-radius: 20px;
    padding: 30px 32px;
    width: 440px;
    max-width: 92vw;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 50px rgba(225,0,255,0.35);
}
.bp-modal h3 { margin: 0 0 20px; color: var(--bp-text); }
.bp-form-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.bp-form-row label { font-size: 12px; color: var(--bp-text-label); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.bp-form-row-split { flex-direction: row; gap: 14px; }
.bp-form-row-split > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bp-form-row select, .bp-form-row input, .bp-form-row textarea {
    background: var(--bp-bg2);
    color: var(--bp-text);
    border: 1px solid rgba(255,46,224,0.4);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}
.bp-form-row select:focus, .bp-form-row input:focus, .bp-form-row textarea:focus { border-color: var(--bp-fuchsia); }
.bp-form-row input::placeholder, .bp-form-row textarea::placeholder { color: #a980c7; opacity: 1; }
.bp-sala-inline { display: flex; gap: 8px; align-items: center; }
#bp-form-sala, #bp-form-sala-new { flex: 1; }

/* input date: icona calendario ben visibile su sfondo scuro */
.bp-form-row input[type="date"] { cursor: pointer; color-scheme: dark; }
.bp-form-row input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.6);
    cursor: pointer;
    padding: 4px;
}

.bp-toggle { display: flex; gap: 8px; }
.bp-toggle input { display: none; }
.bp-toggle label {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,46,224,0.4);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--bp-text-dim);
}
.bp-toggle input:checked + label {
    background: linear-gradient(135deg, var(--bp-fuchsia2), var(--bp-violet));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 14px rgba(225,0,255,0.55);
}
.bp-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
    .bp-stats-row { grid-template-columns: repeat(2, 1fr); }
    .bp-charts-row { grid-template-columns: 1fr; }
}
