/* CV5 Common Styles v5.3.0 */
:root {
    --bg1: #0f0c29;
    --bg2: #302b63;
    --bg3: #24243e;
    --ac: #00d4ff;
    --tx: rgba(255,255,255,0.92);
    --txm: rgba(255,255,255,0.6);
    --glass: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3));
    min-height: 100vh;
    color: var(--tx);
}

/* Buttons */
.btn-cv5 {
    background: linear-gradient(135deg, var(--ac), #0099cc);
    color: #fff;
    border: none;
    padding: .65rem 1.5rem;
    border-radius: .5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.btn-cv5:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,212,255,.3); }
.btn-cv5:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Glass card */
.glass-card {
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
}

/* Forms */
.field-dark {
    width: 100%;
    padding: .6rem .8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    border-radius: .4rem;
    color: var(--tx);
    font-size: .85rem;
    transition: border-color .2s;
}
.field-dark:focus {
    outline: none;
    border-color: var(--ac);
    box-shadow: 0 0 0 2px rgba(0,212,255,.15);
}
.field-dark::placeholder { color: rgba(255,255,255,0.45); }

/* Focus visible for buttons */
button:focus-visible, .btn-cv5:focus-visible, a:focus-visible {
    outline: 2px solid var(--ac);
    outline-offset: 2px;
}

/* Result box responsive */
.result-box { max-height: 400px; overflow-y: auto; }
@media (max-width: 576px) {
    .result-box { max-height: 60vh; }
    .glass-card { padding: 1rem; }
}

/* Alerts */
.alert-glass {
    padding: .8rem 1rem;
    border-radius: .5rem;
    background: rgba(255,255,255,0.06);
    border-left: 3px solid var(--ac);
    margin-bottom: 1rem;
}
