:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 4px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.password-input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
}

input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
}

#togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.help-text {
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 5px;
}

.strength-meter {
    margin-bottom: 20px;
}

.meter-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.meter-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--secondary-color);
}

.crack-time {
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}

.checklist {
    margin-bottom: 20px;
}

.checklist h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.checklist ul {
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.check-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #e9ecef;
    position: relative;
}

.check-icon.valid::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--success-color);
    font-weight: bold;
}

.check-icon.invalid::after {
    content: "✗";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--danger-color);
    font-weight: bold;
}

.suggestions {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.suggestions h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.suggestions ul {
    list-style: disc;
    padding-left: 20px;
}

.suggestions li {
    margin-bottom: 5px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3a5a84;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.server-response {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: none;
}

.server-response.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.server-response.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.generator-options {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.option-group {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.option-group input[type="checkbox"] {
    margin-right: 10px;
}

.option-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}