/* Container */
.tool-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Result Box */
.result-box {
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.password-display {
    font-family: 'JetBrains Mono', monospace; /* Monospace for clarity */
    font-size: 1.2rem;
    color: var(--text-main);
    word-break: break-all;
    font-weight: 500;
}

.toast-msg {
    text-align: center;
    color: var(--accent-green);
    font-size: 0.85rem;
    margin-bottom: 24px;
    height: 20px; /* Prevent layout jump */
}

/* Controls Card */
.controls-card {
    background-color: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.control-group {
    margin-bottom: 20px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.highlight-text {
    color: var(--primary-blue);
    font-weight: 700;
}

input[type=range] {
    width: 100%;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

/* Checkboxes */
.settings-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text-main);
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-blue);
}

/* Buttons */
.primary-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: transform 0.1s;
}

.primary-btn:active {
    transform: scale(0.98);
}

/* MODAL STYLES (Popup) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-surface);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-floating);
    animation: popUp 0.3s ease-out;
}

@keyframes popUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-header h3 {
    color: var(--text-main);
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.hidden { display: none; }