/* Bug Reporter CSS - Vollständige Styles */

.bug-report-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.bug-report-floating-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

.bug-report-floating-btn.pulse {
    animation: bugButtonPulse 2s infinite;
}

@keyframes bugButtonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bug-report-tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: #2d3748;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.bug-report-floating-btn:hover .bug-report-tooltip {
    opacity: 1;
}

.bug-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.bug-report-modal.active {
    display: flex;
}

.bug-report-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.bug-report-content {
    background: white;
    border-radius: 16px;
    width: 90vw;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

body.bug-modal-open {
    overflow: hidden;
}

.bug-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
}

.bug-report-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.bug-report-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bug-report-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.bug-report-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.bug-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bug-tab:hover {
    background: #f1f5f9;
}

.bug-tab.active {
    background: white;
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

#screenshotCount {
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.bug-report-body {
    flex: 1;
    overflow: auto;
    min-height: 0;
}

.bug-tab-content {
    display: none;
    padding: 24px;
}

.bug-tab-content.active {
    display: block;
}

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

.bug-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.bug-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
}

.bug-form-group input,
.bug-form-group select,
.bug-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.bug-form-group input:focus,
.bug-form-group select:focus,
.bug-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bug-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.bug-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkw4IDEwTDEyIDYiIHN0cm9rZT0iIzZiNzI4MCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.char-counter {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.char-counter.warning {
    color: #f59e0b;
    font-weight: 600;
}

.screenshot-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.screenshot-actions-hint {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-screenshot {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-screenshot:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    min-height: 200px;
}

.screenshot-placeholder {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    background: #f9fafb;
}

.screenshot-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    background: white;
}

.screenshot-item:hover {
    transform: translateY(-2px);
}

.screenshot-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-remove {
    align-self: flex-end;
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.screenshot-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.screenshot-info {
    color: white;
    font-size: 11px;
    line-height: 1.3;
}

.screenshot-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loading-system-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6b7280;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.system-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.system-group h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.system-item {
    margin-bottom: 8px;
    font-size: 13px;
    color: #4b5563;
}

.system-item strong {
    color: #374151;
    font-weight: 600;
    min-width: 80px;
    display: inline-block;
}

.system-item code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.bug-report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f9fafb;
    flex-shrink: 0;
    gap: 16px;
}

.footer-left,
.footer-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.bug-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2001;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.bug-notification.show {
    transform: translateX(0);
}

.notification-content {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.bug-notification.success .notification-content {
    border-left-color: #10b981;
}

.bug-notification.error .notification-content {
    border-left-color: #ef4444;
}

.bug-notification.warning .notification-content {
    border-left-color: #f59e0b;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

@media (max-width: 768px) {
    .bug-report-floating-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    
    .bug-report-content {
        width: 95vw;
        max-height: 95vh;
        margin: 10px;
        border-radius: 12px;
    }
    
    .bug-report-header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .bug-tab-content {
        padding: 16px;
    }
    
    .bug-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .screenshot-actions {
        flex-direction: column;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .system-grid {
        grid-template-columns: 1fr;
    }
    
    .bug-report-footer {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary {
        flex: 1;
        justify-content: center;
    }
}