/* Feedback Report Button - matches skip forward button style, mirrored to left */
.feedback-button {
    position: absolute;
    left: 12px;
    bottom: -56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 44px;
    height: 44px;
    padding: 4px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    z-index: 40;
}

.feedback-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.feedback-button:active {
    transform: scale(0.95);
}

.feedback-button svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Mobile adjustments for feedback button */
@media (max-width: 480px) {
    .feedback-button {
        left: 8px;
        bottom: -50px;
        width: 40px;
        height: 40px;
        padding: 3px;
    }

    .feedback-button svg {
        width: 12px;
        height: 12px;
    }
}

/* Feedback Modal */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

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

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

.feedback-modal {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: scaleIn 0.2s ease forwards;
    /* Dark theme scrollbar - Firefox */
    scrollbar-width: thin;
    scrollbar-color: #333333 #1a1a1a;
}

/* Dark theme scrollbar - WebKit (Chrome, Safari, Edge) */
.feedback-modal::-webkit-scrollbar {
    width: 6px;
}

.feedback-modal::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.feedback-modal::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

.feedback-modal::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

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

.feedback-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.feedback-modal h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.shuffle-video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
}

.shuffle-video-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: scale(1.05);
}

.shuffle-video-btn:active {
    transform: scale(0.95);
}

.shuffle-video-btn svg {
    flex-shrink: 0;
}

.shuffle-video-btn span {
    white-space: nowrap;
}

.feedback-modal h3 {
    margin: 16px 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Issue Categories */
.feedback-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-category-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.feedback-category-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.feedback-category-btn:active {
    transform: translateX(4px) scale(0.98);
}

.feedback-category-btn.selected {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.feedback-category-btn .emoji {
    font-size: 20px;
    flex-shrink: 0;
}

/* Notes Section */
.feedback-notes-section {
    margin-top: 20px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feedback-notes-section.visible {
    opacity: 1;
    max-height: 300px;
}

.feedback-notes-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.feedback-notes-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.feedback-notes-section textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
}

.feedback-notes-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Action Buttons */
.feedback-actions {
    margin-top: 20px;
}

.feedback-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

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

.feedback-btn-primary:disabled {
    background: rgba(59, 130, 246, 0.3);
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.feedback-btn-primary.loading {
    position: relative;
    color: transparent;
}

.feedback-btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notification */
.feedback-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
    to {
        transform: translateX(-50%) translateY(0);
    }
}

.feedback-toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
}

/* Context Info */
.feedback-context {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.feedback-context strong {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .feedback-modal {
        width: 95%;
        padding: 20px;
        border-radius: 12px;
    }

    .feedback-modal h2 {
        font-size: 18px;
    }

    .feedback-category-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
}
