/* Generator Page Styles */

.generator-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.generated-password-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.generated-password-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.password-display-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.password-display {
    flex: 1;
    padding: 1rem;
    font-size: 1.25rem;
    font-family: 'Courier New', monospace;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.btn-icon {
    background: var(--bg-secondary);
    border: none;
    padding: 0.625rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-icon svg {
    display: block;
}

.strength-indicator {
    margin-top: 1rem;
}

.strength-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.strength-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-strong {
    background: linear-gradient(90deg, #10b981, #059669);
}

.strength-good {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.strength-medium {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.strength-weak {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.generator-options {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.generator-options h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.form-group-inline label {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: fit-content;
}

/* Yeni uzunluk seçici stili */
.form-group-length {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.form-group-length label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.form-select-styled {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    min-width: 220px;
}

.form-select-styled:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(30, 41, 59, 0.8);
}

.form-select-styled:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-select-compact {
    max-width: 280px;
}

.form-select:hover {
    border-color: var(--primary);
    background-color: var(--bg-secondary);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select option {
    padding: 0.625rem 0.875rem;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.9375rem;
}

.form-select option:hover,
.form-select option:focus {
    background: var(--primary);
    color: white;
}

.form-select option:checked {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.options-section {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.options-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-generate {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-card {
    position: relative;
    display: flex;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.125rem;
    transition: all 0.2s ease;
}

.checkbox-card:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content {
    opacity: 1;
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content .checkbox-icon {
    color: var(--primary);
    transform: scale(1.05);
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content .checkbox-check {
    opacity: 1;
    transform: scale(1);
}

.checkbox-card input[type="checkbox"]:not(:checked) ~ .checkbox-content {
    opacity: 0.5;
}

.checkbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
}

.checkbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.checkbox-icon {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.checkbox-check {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.checkbox-check::after {
    content: "✓";
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

.checkbox-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.checkbox-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.checkbox-group {
    margin-bottom: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 0.625rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.9375rem;
}

.generator-tips {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.generator-tips h3 {
    margin-bottom: 1rem;
}

.generator-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.generator-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.generator-tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #10b981;
}

/* 13-14" Laptop optimization */
@media (max-width: 1440px) {
    .generator-container {
        max-width: 700px;
    }
    
    .password-display {
        font-size: 1.15rem;
        padding: 0.875rem;
    }
}

@media (max-width: 1366px) {
    .generator-container {
        max-width: 650px;
    }
    
    .generated-password-card,
    .generator-controls {
        padding: 1.5rem;
    }
    
    .password-display {
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .generator-container {
        max-width: 600px;
    }
}
