
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: #ffffff;
    border-bottom: 3px solid #cc0000;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header img {
    height: 48px;
    width: auto;
}

.header h1 {
    margin: 0;
    font-size: 22px;
    color: #cc0000;
    font-weight: 700;
}

.main-container {
    max-width: 900px;
    width: 95%;
    margin: 30px auto;
    flex: 1;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 30px;
    margin-bottom: 25px;
    border-top: 4px solid #cc0000;
}

.card h2 {
    margin-top: 0;
    color: #cc0000;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Password Display Field */
.pw-display-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.pw-output {
    flex: 1;
    background: #fff5f5;
    border: 2px solid #cc0000;
    border-radius: 6px;
    padding: 16px 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 24px;
    color: #111;
    letter-spacing: 1.5px;
    word-break: break-all;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: all;
    cursor: pointer;
}

.pw-output:hover {
    background: #ffebeb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #cc0000;
    color: #ffffff;
    padding: 14px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    background-color: #a30000;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.25);
}

.btn-secondary {
    background-color: #495057;
}

.btn-secondary:hover {
    background-color: #343a40;
}

/* Strength Meter */
.strength-section {
    margin-bottom: 25px;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.strength-bar-bg {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Settings Controls */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 700px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .pw-display-container {
        flex-direction: column;
    }
}

.length-control {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    padding: 18px;
    border-radius: 6px;
}

.length-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.length-value {
    font-size: 20px;
    font-weight: bold;
    color: #cc0000;
    min-width: 40px;
    text-align: right;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    accent-color: #cc0000;
    cursor: pointer;
}

.options-control {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    padding: 18px;
    border-radius: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #cc0000;
    cursor: pointer;
}

.checkbox-desc {
    color: #666;
    font-size: 13px;
    margin-left: 32px;
    margin-top: -8px;
    margin-bottom: 10px;
}

/* Bulk Generator */
.bulk-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bulk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px 16px;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 16px;
}

.bulk-item:hover {
    border-color: #cc0000;
    background: #fff;
}

.btn-mini {
    padding: 6px 12px;
    font-size: 13px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-mini:hover {
    background: #cc0000;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #212529;
    color: #fff;
    padding: 14px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: none;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    border-left: 4px solid #28a745;
}

/* Footer & Info */
.info-box {
    background: #fff;
    border-left: 4px solid #cc0000;
    padding: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

.info-box ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #e9ecef;
    background: #ffffff;
}
