body {
    margin-top: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    color: #4a5568;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.lead {
    color: #718096;
}

#generated_password {
    padding: 20px;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#generated_password code {
    background: none !important;
    color: #2d3748;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.d-grid {
    padding: 20px 0;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-header {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

.form-range {
    margin: 10px 0;
}

.form-check {
    margin: 8px 0;
}

.form-check-label {
    margin-left: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.btn-outline-secondary {
    border-radius: 6px;
    transition: all 0.3s ease;
}

.progress {
    border-radius: 10px;
    background-color: #e2e8f0;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* Toast notification styles */
.toast-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        margin-top: 20px;
    }
    
    .container {
        margin: 10px;
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    #generated_password code {
        font-size: 0.9rem;
    }
}

/* Accessibility improvements */
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
}

.form-range:focus {
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
}

/* Animation for password generation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#generated_password.animated {
    animation: slideInUp 0.3s ease-out;
}
