/* static/css/password_generator.css */

.password-tool-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-left: 5px solid #c0392b; /* Dark Red Accent */
    max-width: 600px; 
}

.tool-title-page { 
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for options */
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column; /* Stack label and input vertically */
}

.form-group.length-group label,
.form-group.checkbox-group label,
.form-group.text-input-group label {
    color: #aaaaaa;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group.checkbox-group {
    flex-direction: row; /* Align checkbox and label horizontally */
    align-items: center;
}

.form-group.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: #c0392b; /* Style the checkbox itself */
}

.form-group input[type="range"].slider {
    width: 100%;
    cursor: pointer;
    accent-color: #c0392b;
}

.form-group input[type="text"]#custom-symbols {
    width: 100%;
    padding: 0.6rem;
    border-radius: 4px;
    border: 1px solid #333333;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
}
.form-group input[type="text"]#custom-symbols:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.5);
}


.actions-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-btn.generate-btn {
    background-color: #c0392b; /* Dark Red Accent */
    width: auto; /* Allow button to size to content or set a specific width */
}
.action-btn.generate-btn:hover {
    background-color: #e74c3c; /* Lighter Dark Red */
}

.result-container {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem; /* Reduced margin before status message */
}

.result-container input[type="text"] {
    flex-grow: 1;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #333333;
    background-color: #2a2a2a;
    color: #DAA520; /* Gold for the password text */
    font-size: 1.1rem;
    font-family: 'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace;
    text-align: center;
}
.result-container input[type="text"]:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.5);
}


.action-btn.copy-btn {
    background-color: #333; /* Dark grey for copy button */
    padding: 0.6rem; /* Make it a bit smaller */
    line-height: 0; /* Helps align SVG icon if it has extra space */
}
.action-btn.copy-btn svg {
    width: 1em; /* Control SVG size via font-size of button or direct width/height */
    height: 1em;
    fill: #e0e0e0; /* Light icon color */
}
.action-btn.copy-btn:hover {
    background-color: #444;
}

.status-message {
    min-height: 1.5em; 
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}
.status-message.success {
    color: #2ecc71; 
}
.status-message.error {
    color: #e74c3c; 
}

/* Ensure the main content area on this page uses flex to center the tool container */
main.site-main.container { 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .password-tool-container {
        padding: 1.5rem;
    }
    .options-grid {
        gap: 0.75rem;
    }
    .action-btn {
        font-size: 1rem;
    }
    .result-container input[type="text"] {
        font-size: 1rem;
    }
}
