/* Password Generator Styles */

.generator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.generator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.generator-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.generator-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.generator-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

/* Password Display */
.password-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.password-display input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    font-family: 'Courier New', monospace;
    padding: 0.75rem;
    outline: none;
    min-width: 0;
}

.copy-btn,
.refresh-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover,
.refresh-btn:hover {
    background: var(--primary);
    color: white;
}

/* Strength Meter */
.strength-meter {
    height: 6px;
    background: var(--dark-bg);
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-bar.weak { width: 25%; background: #ef4444; }
.strength-bar.fair { width: 50%; background: #f59e0b; }
.strength-bar.good { width: 75%; background: #22c55e; }
.strength-bar.strong { width: 100%; background: linear-gradient(90deg, #22c55e, #10b981); }

.strength-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.strength-label.weak { color: #ef4444; }
.strength-label.fair { color: #f59e0b; }
.strength-label.good { color: #22c55e; }
.strength-label.strong { color: #10b981; }

/* Options Section */
.options-section {
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.option-group label span {
    color: var(--primary);
    font-weight: 600;
}

.option-group input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--dark-bg);
    border-radius: 4px;
    outline: none;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(88, 101, 242, 0.4);
}

.option-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    cursor: pointer;
    border: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2rem;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

/* History Section */
.history-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.history-section h3 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.no-history {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--dark-bg);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item .password {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item .copy-small {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: var(--surface-color);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.history-item .copy-small:hover {
    background: var(--primary);
    color: white;
}

.history-item .copy-small svg {
    width: 14px;
    height: 14px;
}

.clear-history-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.clear-history-btn:hover {
    border-color: var(--error);
    color: var(--error);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
    font-family: 'Poppins', sans-serif;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .generator-container {
        padding: 1rem;
    }

    .generator-header h1 {
        font-size: 2rem;
    }

    .generator-card {
        padding: 1.5rem;
    }

    .password-display input {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .generator-header h1 {
        font-size: 1.75rem;
    }

    .generator-container {
        padding: 0.75rem;
    }

    .generator-card {
        padding: 1.25rem;
    }

    .password-display input {
        font-size: 0.9rem;
    }

    .password-display {
        flex-wrap: nowrap;
    }

    .generate-btn {
        font-size: 1rem;
    }

    .history-item .password {
        font-size: 0.8rem;
    }

    .checkbox-group {
        gap: 0.5rem;
    }
}
