* {
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 32px;
    font-size: 2rem;
    font-weight: 600;
}

.settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

.length-controls {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.length-control {
    flex: 1;
}

.length-control select {
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    margin-top: 1px;
}

.tooltip {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin-left: 8px;
    font-weight: normal;
}

@media (max-width: 400px) {
    .checkbox-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .tooltip {
        margin-left: 0;
        margin-top: 2px;
    }
}

.password-section {
    text-align: center;
    margin-bottom: 24px;
}

.password-display {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    word-break: break-all;
    line-height: 1.4;
}

.password-display:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateY(-1px);
}

.password-display.has-password {
    color: #2d3748;
    background: #f7fafc;
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

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

.info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.strength-info {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e1e5e9;
}

.strength-info p {
    color: #777;
    font-size: 0.8rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin: 0;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hidden {
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 24px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .password-display {
        font-size: 1.2rem;
        padding: 20px;
    }
    
    .generate-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}