/* ===== SICHERHEITS-OVERLAY STYLES ===== */

:root {
    --security-primary: var(--primary-color, #c88ea7);
    --security-primary-dark: var(--primary-dark, #a66d86);
}

.security-modal {
    max-width: 700px !important;
    max-height: 90vh;
    overflow-y: auto;
}

.security-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--security-primary);
}

.tab-btn.active {
    color: var(--security-primary);
    border-bottom-color: var(--security-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--security-primary);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 14px;
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.status-text {
    font-size: 16px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 20px;
}

.setup-step {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.setup-step h4 {
    color: var(--security-primary);
    margin-bottom: 10px;
}

#qr-code-container {
    text-align: center;
    margin: 20px 0;
}

#qr-code-container img {
    max-width: 300px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    background: white;
}

#manual-code {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
}

#verify2faCode {
    width: 200px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 5px;
    padding: 15px;
    margin: 15px 0;
}

.twofa-method-picker {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.twofa-method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.twofa-method-option input {
    width: auto;
}

.twofa-method-hint {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
}

.backup-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.backup-codes code {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.btn-primary {
    padding: 12px 30px;
    background: var(--security-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--security-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 12px 30px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* 2FA Status Badge */
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .security-modal {
        max-width: 95% !important;
        padding: 20px;
    }

    .security-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 6px;
    }

    .tab-btn {
        text-align: center;
        white-space: nowrap;
        padding: 10px 14px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-left-color: var(--security-primary);
    }

    .backup-codes {
        grid-template-columns: 1fr;
    }

    #verify2faCode {
        width: 100%;
        letter-spacing: 3px;
        font-size: 20px;
    }

    #qr-code-container img {
        max-width: 100%;
    }

    #manual-code {
        word-break: break-word;
    }

    .backup-codes code {
        font-size: 14px;
        padding: 10px;
    }
}
