* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 1200px;
}

h1 {
    text-align: center;
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 700;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
}

.section {
    margin-bottom: 30px;
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e0e7ff;
}

.section-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-size: 1.2em;
    margin-right: 10px;
    font-weight: 700;
}

h3 {
    display: inline-block;
    color: #333;
    font-size: 1.3em;
    margin-bottom: 20px;
}

/* Settings */
.setting-group {
    margin: 20px 0;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

.slider-container {
    margin: 15px 0;
}

#password-length {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #e0e7ff 0%, #667eea 50%, #764ba2 100%);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

#password-length::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#password-length::-webkit-slider-thumb:hover {
    background: #764ba2;
    transform: scale(1.1);
}

#password-length::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.length-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #666;
}

.length-display span:first-child,
.length-display span:last-child {
    color: #999;
    font-size: 0.8em;
}

#length-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1em;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: white;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.95em;
    color: #555;
}

/* Buttons */
.generate-btn,
.copy-btn,
.regenerate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.generate-btn:hover,
.copy-btn:hover,
.regenerate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

.button-group {
    margin-top: 20px;
}

/* Password Display */
.password-display {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    min-height: 80px;
    border: 2px solid #e0e7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.password-display:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.placeholder-text {
    text-align: center;
    color: #999;
}

.placeholder-text svg {
    opacity: 0.3;
    margin-bottom: 15px;
    stroke: #667eea;
}

.placeholder-text p {
    font-size: 0.95em;
    margin-top: 10px;
}

#password-output {
    width: 100%;
    min-height: 50px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    border: none;
    background: transparent;
    color: #333;
    resize: none;
    word-break: break-all;
    line-height: 1.5;
    cursor: pointer;
}

#password-output:focus {
    outline: none;
}



.info-text {
    color: #888;
    font-size: 0.95em;
    text-align: center;
    padding: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: white;
    font-size: 0.95em;
}

.footer p {
    margin: 0;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer a:hover {
    border-bottom-color: white;
}

/* Copied Popup */
.copied-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #00c851, #00e676);
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 200, 81, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.copied-popup.show {
    transform: translate(-50%, -50%) scale(1);
}

.copied-popup svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-box {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
}
