:root {
    --primary: #00ff9d;
    --primary-dim: rgba(0, 255, 157, 0.1);
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --text-main: #ffffff;
    --text-muted: #888888;
    --gradient-1: linear-gradient(135deg, #00ff9d 0%, #00b8ff 100%);
    --font-main: 'Inter', sans-serif;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

/* Header */
header {
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Main Container */
main {
    width: 100%;
    max-width: 800px;
    padding: 1rem;
    flex: 1;
}

/* Generator Card */
.generator-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.generator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
}

/* Output Display */
.output-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#password-output {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    color: var(--primary);
    word-break: break-all;
    margin-right: 1rem;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 8px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Controls */
.controls {
    display: grid;
    gap: 1.5rem;
}

.length-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.length-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
    user-select: none;
    transition: color 0.2s;
}

.checkbox-wrapper:hover {
    color: var(--text-main);
}

.checkbox-wrapper input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Strength Meter */
.strength-container {
    margin-top: 1rem;
    background: rgba(255,255,255,0.05);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.1s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.generate-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.generate-btn:active {
    transform: scale(0.98);
}

/* Content Section (Article) */
.article-section {
    color: #ccc;
    font-size: 1.1rem;
    padding: 0 1rem 4rem 1rem;
}

.article-section h2 {
    color: var(--text-main);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.article-section h3 {
    color: var(--primary);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.4rem;
}

.article-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-section li {
    margin-bottom: 0.5rem;
}

.important-box {
    background: rgba(255, 200, 0, 0.1);
    border-left: 4px solid #ffc800;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* Footer */
footer {
    width: 100%;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 600px) {
    .generator-card {
        padding: 1.5rem;
    }
    
    #password-output {
        font-size: 1.2rem;
    }
}
