/* Premium Feedback Widget Styling */
.feedback-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color-scheme: dark;
}

/* Floating Action Button */
.feedback-fab {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.feedback-fab:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.feedback-fab svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.feedback-fab.open svg {
    transform: rotate(90deg);
}

/* Slide-out Drawer Panel */
.feedback-panel {
    position: fixed;
    top: 24px;
    bottom: 24px;
    right: -420px;
    width: 380px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999998;
}

.feedback-panel.open {
    right: 24px;
}

/* Header */
.feedback-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.4);
}

.feedback-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #f8fafc;
    background: linear-gradient(to right, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feedback-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.feedback-close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

/* Tabs */
.feedback-tabs {
    display: flex;
    padding: 6px;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
}

.feedback-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-tab-btn.active {
    background: rgba(124, 58, 237, 0.2);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.feedback-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
}

/* Content Area */
.feedback-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feedback-content::-webkit-scrollbar {
    width: 6px;
}
.feedback-content::-webkit-scrollbar-track {
    background: transparent;
}
.feedback-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Inputs & Form Fields */
.feedback-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-field label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.feedback-input, .feedback-select, .feedback-textarea {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    color: #f1f5f9;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.feedback-input:focus, .feedback-select:focus, .feedback-textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: rgba(30, 41, 59, 0.7);
}

.feedback-textarea {
    resize: none;
    min-height: 80px;
}

/* Category Badges on Feed */
.category-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}
.badge-bug { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-idea { background: rgba(167, 139, 250, 0.15); color: #c084fc; border: 1px solid rgba(167, 139, 250, 0.2); }
.badge-question { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-general { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

/* Audio Recorder Panel */
.audio-recorder-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.recorder-btn {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e2e8f0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.recorder-btn:hover {
    background: #334155;
    border-color: #8b5cf6;
    transform: scale(1.05);
}

.recorder-btn.recording {
    background: #ef4444;
    border-color: #f87171;
    animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.audio-preview-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.3);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.delete-audio-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.delete-audio-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Submit Button */
.feedback-submit-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feedback-submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.feedback-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message Board Feed */
.feed-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.feed-item:hover {
    border-color: rgba(139, 92, 246, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.feed-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.feed-item-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-item-user {
    font-size: 12px;
    font-weight: 800;
    color: #f1f5f9;
}

.feed-item-time {
    font-size: 9px;
    color: #64748b;
    font-weight: 600;
}

.feed-item-text {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
}

/* Custom Audio Player in Feed Card */
.feed-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.4);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.audio-play-btn {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.15);
    color: #c084fc;
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-play-btn:hover {
    background: rgba(124, 58, 237, 0.3);
    transform: scale(1.05);
}

.audio-timeline-container {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.audio-timeline-progress {
    height: 100%;
    background: linear-gradient(to right, #a78bfa, #818cf8);
    width: 0%;
}

.audio-duration-display {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 32px;
    text-align: right;
}

/* Comments section inside feed item */
.feed-comments-area {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    margin-bottom: 2px;
}

.comment-user {
    font-weight: 800;
}

.comment-time {
    font-size: 8px;
    color: #64748b;
}

.comment-text {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Comment Input Form */
.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.comment-input {
    flex-grow: 1;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 10px;
    color: #e2e8f0;
    font-size: 11px;
    outline: none;
    transition: all 0.2s ease;
}

.comment-input:focus {
    border-color: #8b5cf6;
    background: rgba(30, 41, 59, 0.5);
}

.comment-submit-btn {
    background: rgba(124, 58, 237, 0.15);
    color: #c084fc;
    border: 1px solid rgba(124, 58, 237, 0.25);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-submit-btn:hover {
    background: rgba(124, 58, 237, 0.3);
}

.empty-state {
    text-align: center;
    color: #64748b;
    padding: 40px 10px;
    font-size: 13px;
    font-weight: 500;
}

/* Styling for Admin Announcements */
.feed-item.announcement-item {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.03);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.05);
}

.feed-item.announcement-item:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.05);
}

/* Tutorial Guides styles inside Drawer */
.feedback-tutorial-card:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
.watch-tut-btn:hover {
    background: rgba(124, 58, 237, 0.3) !important;
    color: #e9d5ff !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2) !important;
}

