/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000000;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.01) 0%, transparent 50%),
        linear-gradient(45deg, #000000 0%, #111111 25%, #000000 50%, #111111 75%, #000000 100%);
    animation: backgroundShift 8s ease-in-out infinite;
    z-index: -2;
}

/* Scanlines effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.01) 2px,
        rgba(255, 255, 255, 0.01) 4px
    );
    animation: scanlines 0.1s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: translateX(-2px) translateY(1px) scale(1.01);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: translateX(1px) translateY(-1px) scale(0.99);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: translateX(-1px) translateY(2px) scale(1.005);
        filter: hue-rotate(270deg);
    }
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

.main {
    flex: 1;
}

.generator-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.settings {
    margin-bottom: 2rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.value {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.result-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.password-display {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 10px;
}

#password-output {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}

#password-output::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.copy-btn svg {
    width: 20px;
    height: 20px;
}

.strength-meter {
    margin-bottom: 2rem;
}

.strength-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-fill.weak {
    width: 25%;
    background: linear-gradient(90deg, #ff4444, #ff6666);
}

.strength-fill.medium {
    width: 50%;
    background: linear-gradient(90deg, #ffaa44, #ffcc66);
}

.strength-fill.strong {
    width: 75%;
    background: linear-gradient(90deg, #44aa44, #66cc66);
}

.strength-fill.very-strong {
    width: 100%;
    background: linear-gradient(90deg, #44ff44, #66ff66);
}

.strength-text {
    color: #fff;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.generate-btn, .generate-multiple-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.generate-btn:hover, .generate-multiple-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.2);
}

.generate-btn {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.multiple-passwords {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.multiple-passwords h3 {
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.passwords-list {
    display: grid;
    gap: 1rem;
}

.password-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.password-item input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}

.password-item button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.password-item button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.back-link:hover {
    border-bottom-color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .generate-btn, .generate-multiple-btn {
        width: 100%;
    }
}
