:root {
    --bg-color: #0a0f1a;
    --card-bg: #161e2d;
    --accent: #3b82f6;
    --accent-dark: #1d4ed8;
    --text-primary: #f1f5f9;
    --text-dim: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background: radial-gradient(circle at top right, #1e293b, #0a0f1a);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: var(--card-bg);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

header { text-align: center; margin-bottom: 2rem; }
header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -1px; color: var(--accent); }
header p { color: var(--text-dim); font-size: 0.9rem; margin-top: 5px; }

/* Área de Resultado */
.result-area { margin-bottom: 2rem; }

.result-container {
    display: flex;
    background: #0f172a;
    padding: 1.2rem;
    border-radius: 1rem;
    border: 2px solid #334155;
    align-items: center;
    transition: border-color 0.3s;
}

.result-container:focus-within { border-color: var(--accent); }

#password-display {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    width: 100%;
    outline: none;
}

#copy-btn {
    color: var(--text-dim);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

#copy-btn:hover { color: var(--accent); }

/* Barra de Força */
.strength-wrapper { margin-top: 1rem; }
#strength-bar {
    height: 10px;
    border-radius: 5px;
    width: 0%;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.strength-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 600;
    color: var(--text-dim);
}

/* Slider Customizado */
.label-row { display: flex; justify-content: space-between; margin-bottom: 1rem; font-weight: 600; }
.badge { background: var(--accent); color: white; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; }

input[type=range] {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: #0f172a;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Grid de Opções */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.option-card {
    background: #1e293b;
    padding: 12px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.option-card:hover { background: #334155; }

/* Botão Gerar */
.main-button {
    width: 100%;
    padding: 1.2rem;
    border-radius: 1rem;
    background: var(--accent);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.main-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Footer Profissional */
.pro-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.divider { height: 1px; background: rgba(255,255,255,0.05); margin-bottom: 1.5rem; }
.author { margin-top: 5px; text-transform: uppercase; letter-spacing: 2px; }
.author span { color: var(--accent); font-weight: 700; }

/* Toast Notification */
.toast {
    position: fixed;
    top: -60px; /* Escondido acima da tela */
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999; /* Garante que fique acima de tudo */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.toast.show {
    top: 30px; /* Aparece no topo */
}
