/* Inherits professional styles */

.pass-gen-container {
    max-width: 800px;
    /* Wider for this tool */
    margin: 0 auto;
}

.password-output-section {
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.main-output-wrapper {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

#generated-password {
    flex-grow: 1;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 20px;
    letter-spacing: 1px;
    padding: 15px;
    border: 2px solid #dfe6ed;
    border-radius: 8px;
    color: #1e293b;
    background: #fff;
    text-align: center;
    height: 54px;
    /* fixed height */
}

#generated-password:focus {
    border-color: var(--ast-global-color-0, #0274be);
    outline: none;
}

.output-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 54px;
    height: 54px;
    border: 1px solid #c3c4c7;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #475569;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.btn-action.primary {
    background: var(--ast-global-color-0, #0274be);
    color: #fff;
    border-color: var(--ast-global-color-0, #0274be);
}

.btn-action.primary:hover {
    background: #005177;
    border-color: #005177;
}

.copy-feedback {
    margin-top: 10px;
    color: #16a34a;
    font-weight: 600;
    font-size: 14px;
    height: 20px;
    /* Reserve space */
}

.copy-feedback.hidden {
    opacity: 0;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 600px) {
    .controls-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.control-panel {
    background: #fff;
    border: 1px solid #dfe6ed;
    padding: 20px;
    border-radius: 8px;
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

/* Custom Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    /* Override default CSS styles */
    appearance: none;
    flex-grow: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

/* Thumb: Webkit */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ast-global-color-0, #0274be);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background .15s ease-in-out, transform 0.1s;
    margin-top: 0;
    /* Align */
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #005177;
    transform: scale(1.1);
}

/* Thumb: Firefox */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--ast-global-color-0, #0274be);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background .15s ease-in-out, transform 0.1s;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #005177;
    transform: scale(1.1);
}

input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid #dfe6ed;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.check-option input {
    width: 18px;
    height: 18px;
}

.text-success {
    color: #16a34a !important;
}