/* Inherit styles from your uploaded style.css */
body {
    font-family: Arial, sans-serif;
    background-color: #e9eef2; /* Lighter, cooler background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px; /* Slightly rounder */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    width: 100%;
    max-width: 420px; /* Slightly wider */
}

h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 25px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

h3 {
    margin-top: 0;
    color: #555;
    font-size: 16px;
}

.input-group, .checkbox-group {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
}

/* Slider and Number Input */
.length-control label {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}

input[type="range"] {
    width: 100%;
    /* Custom styling for cross-browser slider appearance can be complex, 
       but we keep it simple here. */
}


.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2); /* Make checkbox slightly larger */
}

button#generate-btn {
    padding: 15px;
    background-color: #007bff;
    letter-spacing: 1px;
}

button#generate-btn:hover {
    background-color: #0056b3;
}

/* Password Display and Copy Button */
.password-display-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#password-output {
    flex-grow: 1;
    min-height: 50px;
    border-color: #28a745; 
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    font-weight: bold;
    font-family: monospace;
}

button#copy-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    margin-left: -1px;
    border-radius: 0 4px 4px 0;
    background-color: #6c757d;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

button#copy-btn:hover {
    background-color: #5a6268;
}

/* Strength Meter */
#strength-meter-container {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

#strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.4s ease-in-out, background-color 0.4s;
    border-radius: 4px;
}

/* Strength Colors */
.strength-weak #strength-bar {
    background-color: #dc3545; /* Red */
}

.strength-medium #strength-bar {
    background-color: #ffc107; /* Yellow */
}

.strength-strong #strength-bar {
    background-color: #28a745; /* Green */
}

/* Message Styles */
#strength-text {
    font-size: 14px;
    margin-top: 5px;
}

.message.error {
    color: #dc3545;
}

.message.success {
    color: #28a745;
}

.api-info {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-bottom: 15px;
}