:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --card-accent: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --border-color: #334155;
}

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

body {
    background: linear-gradient(-45deg, #0f172a, #831843, #0f172a, #0f766e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.app-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}


.generator-container, .card, .main-content {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}
.seo-footer {
    max-width: 800px;
    text-align: center;
    margin-top: 20px;
}

.title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Result Box */
.result-container {
    background-color: #0f172a;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

#result {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    word-break: break-all;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-copy:hover {
    color: var(--primary-color);
}

/* Progress & Tabs */
.mode-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.mode-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.mode-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.result-wrapper {
    margin-bottom: 30px;
}
.result-container {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}
.progress-container {
    height: 6px;
    background: rgba(0,0,0,0.3);
    width: 100%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-top: none;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--danger-color);
    transition: width 0.4s ease, background-color 0.4s ease;
}
.strength-label-text {
    text-align: right;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.setting-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}
.glass-select {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
}
.glass-select option {
    background: var(--bg-color);
}

/* Settings */
.settings {
    margin-bottom: 30px;
}

.setting-length {
    margin-bottom: 25px;
}

.length-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

#length-val {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

input[type=range] {
    width: 100%;
    appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
input[type=range]::-webkit-slider-thumb:hover {
    background: var(--primary-color);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #0f172a;
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

.setting-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1.1rem;
    user-select: none;
    color: var(--text-primary);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #0f172a;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.btn-generate {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.btn-generate:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.btn-generate:active {
    transform: translateY(0);
}

/* Toast */
.toast {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: bottom 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.toast.show {
    bottom: 30px;
}
