:root {
    --bg: #000000;
    --accent: #22d3ee;
    --accent-hover: #06b6d4;
    --text: #e2e8f0;
    --muted: #94a3b8;

    /* Subtle glass card */
    --card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);

    font-family: "Montserrat", sans-serif;
}

* {
    box-sizing: border-box;
    transition: 0.3s ease;
}

body {
    margin: 0;
    background: linear-gradient(
        to bottom,
        #001a1a,
        #000000 60%
    );

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text);
}

/* Optional subtle vignette (depth effect) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 60%, rgba(0,0,0,0.8));
}

/* Container */
.container {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    backdrop-filter: blur(10px);

    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

/* Title */
h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

/* Output */
.output {
    background: rgba(0, 0, 0, 0.6);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    word-break: break-all;
}

/* Buttons */
button {
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px;
    border: none;
}

/* Generate button */
.btn {
    width: 100%;
    background: var(--accent);
    color: black;
    padding: 12px;
    margin-top: 10px;
    font-size: 1rem;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn:active {
    transform: scale(0.97);
}

/* Copy button */
.copy {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 6px 12px;
}

.copy:hover {
    background: var(--accent);
    color: black;
}

/* Settings */
.settings {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.range-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

input[type="range"] {
    width: 100%;
    margin-left: 10px;
    accent-color: var(--accent);
}

/* Checkboxes */
.checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
}

input[type="checkbox"] {
    accent-color: var(--accent);
}

/* Strength */
.strength {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Strength bar */
.strength-bar {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
    margin-top: 8px;
}

.strength-bar div {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #22d3ee, #0ea5e9);
    transition: width 0.3s ease;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.9);
    padding: 12px 16px;
    border-radius: 10px;
    color: white;
    display: none;
    border: 1px solid var(--border);
}

.toast.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}