/* ===== PAGE BASE ===== */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a, #020617);
    color: #ffffff;
    overflow-x: hidden;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: auto;
    padding: 40px 20px;
}

/* ===== PARTICLES ===== */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
}

/* ===== TITLE ===== */

.hero h1 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 10px;
}

.hero p {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 25px;
}

/* ===== MAIN BOX ===== */

.checker-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
}

/* ===== SLIDER ===== */

input[type="range"] {
    width: 100%;
    margin: 12px 0;
    accent-color: #00f5ff;
}

/* ===== OPTIONS GRID ===== */

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.options label {
    font-size: 14px;
    cursor: pointer;
}

/* ===== BUTTON ===== */
/* ===== ACTION AREA ===== */

.action-area {
    margin-top: 15px;
}

/* Main Generate Button */

.primary-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 20px;
}

/* Copy Button */

.small-btn {
    width: auto;
    padding: 8px 14px;
    border-radius: 15px;
}

/* Result Layout */

.result-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.result-box input {
    flex: 1;
}

/* Strength + Entropy row */

.metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
}

/* MOBILE FIX */

@media (max-width: 480px) {

    .result-box {
        flex-direction: column;
    }

    .small-btn {
        width: 100%;
    }

    .metrics {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ===== RESULT BOX ===== */

.result-box {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

#passwordOutput {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #00f5ff;
    background: #111827;
    color: #00ffcc;
    font-size: 14px;
}

/* ===== STRENGTH BAR ===== */

.strength-bar {
    width: 100%;
    height: 8px;
    background: #1f2937;
    border-radius: 8px;
    margin-top: 15px;
    overflow: hidden;
}

#strengthFill {
    height: 100%;
    width: 0%;
    background: lime;
    transition: width 0.4s ease;
    border-radius: 8px;
}

/* ===== STRENGTH + ENTROPY ROW ===== */

.metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
}

/* ===== MUTATION SECTION ===== */

#mutationSection {
    margin-top: 15px;
}

#mutationLevel {
    width: 100%;
    margin-top: 8px;
}

#mutatedPreview {
    margin-top: 8px;
    font-size: 14px;
    color: #00f5ff;
}

/* ===== IMPACT BAR ===== */

.impact-bar {
    width: 100%;
    height: 6px;
    background: #1f2937;
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
}

#impactFill {
    height: 100%;
    width: 0%;
    background: lime;
    transition: width 0.3s ease;
    border-radius: 8px;
}

#impactText {
    margin-top: 6px;
    font-size: 14px;
}

/* ===== DOWNLOAD BUTTON ===== */

.download-btn {
    width: 100%;
    margin-top: 18px;
}

/* ===== TOAST ===== */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00f5ff;
    color: black;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: bold;
    opacity: 0;
    transition: 0.4s;
}

.toast.show {
    opacity: 1;
}

/* ===== BACK BUTTON ===== */

.back-btn {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #00f5ff;
    text-decoration: none;
}

.back-btn:hover {
    text-decoration: underline;
}

/* ===== MOBILE FIX ===== */

@media (max-width: 480px) {

    .content {
        padding: 30px 15px;
    }

    .checker-box {
        padding: 18px;
    }

    .metrics {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .result-box {
        flex-direction: column;
    }
}
.strength-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    margin-top: 10px;
    overflow: hidden;
}

#strengthFill {
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
}
/* ===== PREMIUM UI UPGRADE ===== */

/* Card upgrade */
.checker-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 0 25px rgba(0,255,255,0.15);
}

/* Better input styling */
#passwordOutput {
    background: rgba(0,0,0,0.6);
    border: 1px solid #00f5ff;
    color: #00ffcc;
    font-size: 15px;
    letter-spacing: 1px;
}

/* Buttons cleaner */
.btn {
    background: linear-gradient(135deg, #00f5ff, #00c3ff);
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0 20px #00f5ff;
    transform: translateY(-2px);
}

/* Primary button bigger */
.primary-btn {
    padding: 14px;
    font-size: 15px;
}

/* Copy button subtle */
.small-btn {
    padding: 8px 14px;
    font-size: 14px;
}

/* Strength bar glow */
.strength-bar {
    margin-top: 18px;
    height: 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

#strengthFill {
    border-radius: 20px;
    box-shadow: 0 0 10px currentColor;
}

/* Metrics styling */
.metrics {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* Impact bar styling */
.impact-bar {
    height: 8px;
    border-radius: 20px;
}

/* Checkbox spacing better */
.options label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Section spacing */
.options {
    margin-bottom: 25px;
}

/* Download button spacing */
.checker-box > .btn {
    margin-top: 18px;
}
/* ===== NEW CLEAN OPTIONS LAYOUT ===== */

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.option-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.seed-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seed-group input[type="text"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #00f5ff;
    background: #111827;
    color: #00ffcc;
}

.mutate-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

#mutationSection {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0,255,255,0.05);
    border: 1px solid rgba(0,255,255,0.15);
}

/* MOBILE CLEAN STACK */
@media (max-width: 480px) {
    .option-group {
        grid-template-columns: 1fr;
    }
}
/* ===== HISTORY BOX ===== */

.history-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(0,255,255,0.15);
}

.history-box h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #00f5ff;
}

.history-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.history-box li {
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* ===== Back To Tools Button ===== */

.back-btn {
    backdrop-filter: blur(6px);
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #00f5ff;
    border: 2px solid #00f5ff;
    background: rgba(0, 245, 255, 0.05);
    transition: 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
}

.back-btn:hover {
    background: #00f5ff;
    color: #00111a;
    box-shadow: 0 0 18px #00f5ff;
    transform: translateY(-2px);
}

.back-btn:active {
    transform: scale(0.95);
}
