/* Feedback & Modal System */

/* Overlay Backdrop */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 20000; /* Höher als Kategorie-Editor (10000) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

.feedback-overlay.fade-out {
    animation: fadeOut 0.2s ease forwards;
}

/* Modal Box */
.feedback-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    to { transform: scale(1); }
}

.feedback-overlay.fade-out .feedback-modal {
    animation: scaleOut 0.2s ease forwards;
}

@keyframes scaleOut {
    to { transform: scale(0.7); }
}

/* Modal Header */
.feedback-header {
    padding: 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.feedback-header.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.feedback-header.error {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.feedback-header.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.feedback-header.info {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.feedback-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-title {
    flex: 1;
}

.feedback-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.feedback-title p {
    margin: 4px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Modal Body */
.feedback-body {
    padding: 24px;
    color: #333;
    line-height: 1.6;
}

.feedback-body p {
    margin: 0;
    font-size: 15px;
}

/* Modal Footer */
.feedback-footer {
    padding: 16px 24px;
    background: #f5f5f5;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.feedback-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feedback-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feedback-btn:active {
    transform: translateY(0);
}

.feedback-btn-primary {
    background: #3f0f62;
    color: white;
}

.feedback-btn-primary:hover {
    background: #2d0a47;
}

.feedback-btn-danger {
    background: #f44336;
    color: white;
}

.feedback-btn-danger:hover {
    background: #da190b;
}

.feedback-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.feedback-btn-secondary:hover {
    background: #d0d0d0;
}

/* Auto-close Timer */
.feedback-timer {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.feedback-timer-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    animation: timerProgress 3s linear forwards;
}

@keyframes timerProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Responsive */
@media (max-width: 600px) {
    .feedback-modal {
        min-width: 90%;
        max-width: 90%;
    }
    
    .feedback-header {
        padding: 20px;
    }
    
    .feedback-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .feedback-title h3 {
        font-size: 18px;
    }
    
    .feedback-body {
        padding: 20px;
    }
    
    .feedback-footer {
        flex-direction: column;
    }
    
    .feedback-btn {
        width: 100%;
        justify-content: center;
    }
}
