/* Feedback System Styles */

/* Feedback Form */
.feedback-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #181a20 !important; /* dark background */
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.7);
    border: 1px solid #23262e;
}

.feedback-form h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #b8ff39;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #23262e;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #23262e;
    color: #e0e0e0;
    box-shadow: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #39ff14;
    box-shadow: 0 0 0 2px #39ff1440;
    outline: none;
}

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

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Feedback List */
.feedback-list {
    margin-top: 20px;
}

.feedback-list-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.feedback-list-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: none;
    padding: 20px;
    transition: background-color 0.2s ease;
}

.feedback-list-item:hover {
    background: #f8f9fa;
}

.feedback-list-item:last-child {
    border-radius: 0 0 6px 6px;
}

.feedback-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.feedback-item-main {
    flex: 1;
}

.feedback-item-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.feedback-item-description {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.feedback-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #777;
}

.feedback-status-badge,
.feedback-priority-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.feedback-item-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Feedback Modals */
.feedback-view-modal .modal-content,
.feedback-edit-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.feedback-details {
    padding: 20px 0;
}

.feedback-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.feedback-header h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.feedback-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-badge,
.priority-badge,
.category-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.category-badge {
    background: #e9ecef;
    color: #495057;
}

.feedback-content {
    margin-bottom: 20px;
}

.feedback-content p {
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.feedback-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.feedback-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.feedback-info p:last-child {
    margin-bottom: 0;
}

.admin-notes {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.admin-notes p {
    margin: 0;
    color: #856404;
}

.feedback-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.feedback-attachments,
.feedback-comments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.feedback-attachments h5,
.feedback-comments h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #dee2e6;
}

.comment-item.admin-comment {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-date {
    color: #666;
}

.admin-badge {
    background: #2196f3;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.comment-content {
    color: #333;
    line-height: 1.5;
}

/* Edit Modal */
.feedback-edit-modal .form-group {
    margin-bottom: 20px;
}

.feedback-edit-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.feedback-edit-modal select,
.feedback-edit-modal textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.feedback-edit-modal select:focus,
.feedback-edit-modal textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.feedback-edit-modal textarea {
    resize: vertical;
    min-height: 100px;
}

/* Enhanced Feedback Cards */
.feedback-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feedback-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

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

.feedback-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.feedback-title-section {
    flex: 1;
}

.feedback-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.feedback-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feedback-category,
.feedback-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.feedback-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e1e5e9;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #007bff;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-date {
    font-size: 12px;
    color: #6c757d;
}

.feedback-content {
    margin-bottom: 15px;
}

.feedback-description {
    margin: 0;
    color: #495057;
    line-height: 1.6;
    font-size: 14px;
}

.feedback-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

.feedback-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #6c757d;
}

.stat-icon {
    font-size: 16px;
}

.stat-value {
    font-weight: 500;
    color: #495057;
}

.feedback-actions {
    display: flex;
    gap: 10px;
}

/* No Feedback State */
.no-feedback {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-feedback-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-feedback h3 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 20px;
}

.no-feedback p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Community Feedback Tab Improvements */
#community-feedback {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.feedback-stats-header {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 8px;
    color: #fff;
}

.stat-icon {
    font-size: 24px;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-filters {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #495057;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Tab Content Visibility */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
}

/* Ensure proper tab switching */
.tab-btn.active {
    background-color: #007bff;
    color: #fff;
}

.tab-btn {
    transition: all 0.3s ease;
}

/* Error States */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
} 

/* Feedback Detail Modal */
.feedback-detail-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.feedback-detail-content {
    padding: 20px;
}

/* Feedback Info Section */
.feedback-info-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.feedback-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
}

.status-badge,
.priority-badge,
.category-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-description {
    margin-bottom: 20px;
}

.feedback-description h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
}

.description-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    line-height: 1.6;
    color: #495057;
}

.feedback-details {
    display: grid;
    gap: 10px;
}

.detail-row {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

/* Comments Section */
.comments-section {
    margin-bottom: 30px;
}

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

.comments-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.comments-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #007bff;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-username {
    font-weight: 600;
    color: #2c3e50;
}

.admin-badge {
    background: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.comment-date {
    font-size: 12px;
    color: #6c757d;
}

.comment-content {
    color: #495057;
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Add Comment Form */
.add-comment-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.add-comment-form h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Attachments Section */
.attachments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.attachments-container {
    display: grid;
    gap: 10px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.attachment-icon {
    font-size: 24px;
    color: #6c757d;
}

.attachment-info {
    flex: 1;
}

.attachment-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.attachment-meta {
    font-size: 12px;
    color: #6c757d;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

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

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #007bff;
}

/* Error Messages */
.error-message {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-detail-modal {
        width: 95%;
        margin: 10px;
    }
    
    .feedback-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .comments-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }

    .feedback-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .feedback-meta {
        align-items: flex-start;
        min-width: auto;
    }
    
    .feedback-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .feedback-stats {
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feedback-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-badges {
        flex-direction: column;
        gap: 5px;
    }
}

/* Ensure no conflicts with existing styles */
.feedback-detail-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feedback-detail-modal .modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-detail-modal .modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.feedback-detail-modal .close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.feedback-detail-modal .close:hover {
    opacity: 0.7;
}

.feedback-detail-modal .modal-body {
    padding: 0;
} 

/* Modal Overlay and Centering */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.55);
    transition: opacity 0.3s;
    align-items: center;
    justify-content: center;
}

.modal-content.feedback-detail-modal {
    background: #fff;
    margin: 60px auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 20px 30px 18px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-header .close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-left: 20px;
}

.modal-header .close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 0 30px 30px 30px;
}

.feedback-detail-content {
    padding: 0;
}

/* Fix for scroll bar always showing */
.modal-content::-webkit-scrollbar {
    width: 8px;
    background: #f1f1f1;
    border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .modal-content.feedback-detail-modal {
        max-width: 99vw;
        margin: 10px auto;
        padding: 0;
    }
    .modal-header, .modal-body {
        padding: 12px 10px;
    }
} 

/* Dark Theme for Community Feedback Tab and Cards */
body, .feedback-container, #community-feedback {
    background: #181a20 !important;
    color: #e0e6f0 !important;
}

.feedback-card {
    background: #23263a !important;
    border: 1.5px solid #2d3250 !important;
    color: #e0e6f0 !important;
}

.feedback-card-header, .feedback-card-footer {
    background: transparent !important;
    color: #e0e6f0 !important;
}

.feedback-title, .feedback-description, .author-name, .feedback-date, .stat-value {
    color: #e0e6f0 !important;
}

.feedback-category, .feedback-status, .status-badge, .priority-badge, .category-badge {
    color: #fff !important;
    opacity: 0.95;
}

.feedback-meta, .feedback-badges {
    color: #b0b8d0 !important;
}

.feedback-stats, .stat-item, .stat-icon {
    color: #b0b8d0 !important;
}

.no-feedback {
    background: #23263a !important;
    color: #b0b8d0 !important;
    border: 2px dashed #2d3250 !important;
}

/* Modal Dark Theme */
.modal-content.feedback-detail-modal {
    background: #23263a !important;
    color: #e0e6f0 !important;
    border: 1.5px solid #2d3250 !important;
}

.modal-header {
    background: linear-gradient(135deg, #23263a 60%, #007bff 100%) !important;
    color: #fff !important;
}

.modal-body, .feedback-detail-content {
    background: #23263a !important;
    color: #e0e6f0 !important;
}

.description-content, .comment-item, .add-comment-form, .attachments-section, .attachments-container, .detail-row {
    background: #23263a !important;
    color: #e0e6f0 !important;
    border-color: #2d3250 !important;
}

input, select, textarea {
    background: #181a20 !important;
    color: #e0e6f0 !important;
    border: 1px solid #2d3250 !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #007bff !important;
    outline: none !important;
}

.btn, .btn-primary, .btn-secondary {
    background: #007bff !important;
    color: #fff !important;
    border: none !important;
}

.btn-secondary {
    background: #2d3250 !important;
    color: #e0e6f0 !important;
}

/* Stat Cards and Filters */
.feedback-stats-header, .feedback-filters {
    background: #23263a !important;
    color: #e0e6f0 !important;
    border: 1.5px solid #2d3250 !important;
}

.stat-card {
    background: linear-gradient(135deg, #23263a 60%, #007bff 100%) !important;
    color: #fff !important;
}

/* Scrollbar for dark theme */
.modal-content::-webkit-scrollbar, .feedback-container::-webkit-scrollbar {
    background: #23263a !important;
}
.modal-content::-webkit-scrollbar-thumb, .feedback-container::-webkit-scrollbar-thumb {
    background: #007bff !important;
} 

/* --- Modal Base Styles --- */
#feedback-modal .modal-content {
    max-width: 600px;
    width: 96vw;
    max-height: 90vh;
    overflow: hidden;
    background: #23243a;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    border: 2px solid #2e2f4a;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
}
#feedback-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 24px 32px 0 32px;
    letter-spacing: 0.01em;
}
#feedback-modal .modal-body {
    flex: 1 1 auto;
    max-height: 60vh;
    overflow-y: auto;
    padding: 18px 32px 12px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: #444 #23243a;
}
#feedback-modal .modal-body::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}
#feedback-modal .modal-body::-webkit-scrollbar-thumb {
    background: #35365a;
    border-radius: 4px;
}
#feedback-modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

/* Hide scrollbar on mobile/tablet if possible */
@media (max-width: 1024px) {
  #feedback-modal .modal-body {
    scrollbar-width: none;
  }
  #feedback-modal .modal-body::-webkit-scrollbar {
    display: none;
  }
}

#feedback-modal .close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
#feedback-modal .close:hover {
    color: #fff;
}

/* --- Comment Section (Reddit/YouTube style) --- */
#feedback-modal .comments-list {
    margin-top: 18px;
    padding: 0 0 8px 0;
    background: none;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 80px;
}
#feedback-modal .comment {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #23243a;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-bottom: 14px;
    padding: 14px 18px 14px 14px;
    border: 1px solid #2e2f4a;
    position: relative;
    transition: box-shadow 0.2s, border 0.2s;
}
#feedback-modal .comment:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border-color: #3a3b5c;
}
#feedback-modal .comment .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1b2d;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #35365a;
}
#feedback-modal .comment .comment-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
#feedback-modal .comment .comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}
#feedback-modal .comment .username {
    font-weight: 600;
    color: #7ec7ff;
    font-size: 1rem;
}
#feedback-modal .comment .date {
    color: #aaa;
    font-size: 0.92rem;
    font-weight: 400;
}
#feedback-modal .comment .comment-text {
    color: #e0e0e0;
    font-size: 1.08rem;
    line-height: 1.5;
    margin-top: 2px;
    word-break: break-word;
}

/* --- Comment Input (fixed at bottom) --- */
#feedback-modal .modal-footer {
    background: #23243a;
    border-top: 1px solid #2e2f4a;
    padding: 16px 32px 16px 32px;
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
#feedback-modal .comment-form {
    display: flex;
    align-items: flex-end;
    width: 100%;
    gap: 10px;
}
#feedback-modal .comment-form .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1b2d;
    object-fit: cover;
    border: 2px solid #35365a;
}
#feedback-modal .comment-form textarea {
    flex: 1 1 auto;
    min-height: 38px;
    max-height: 90px;
    border-radius: 8px;
    border: 1px solid #35365a;
    background: #23243a;
    color: #fff;
    font-size: 1.08rem;
    padding: 10px 12px;
    resize: vertical;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: border 0.2s, box-shadow 0.2s;
}
#feedback-modal .comment-form textarea:focus {
    border-color: #7ec7ff;
    outline: none;
    box-shadow: 0 2px 8px rgba(126,199,255,0.08);
}
#feedback-modal .submit-comment-btn {
    background: linear-gradient(90deg, #4CAF50 60%, #2196F3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(76,175,80,0.10);
}
#feedback-modal .submit-comment-btn:hover {
    background: linear-gradient(90deg, #2196F3 60%, #4CAF50 100%);
    box-shadow: 0 4px 16px rgba(33,150,243,0.12);
}

/* --- Upvote/Downvote Buttons --- */
#feedback-modal .vote-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0 18px 0;
}
#feedback-modal .vote-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    padding: 4px 8px;
    border-radius: 6px;
    outline: none;
}
#feedback-modal .vote-btn.active {
    color: #4CAF50;
    font-weight: 700;
    background: #2e2f4a;
}
#feedback-modal .vote-btn.down.active {
    color: #f44336;
    background: #2e2f4a;
}
#feedback-modal .vote-count {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin: 0 2px;
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  #feedback-modal .modal-content {
    max-width: 98vw;
    width: 98vw;
    min-width: unset;
    border-radius: 10px;
    padding: 0;
  }
  #feedback-modal .modal-title,
  #feedback-modal .modal-body,
  #feedback-modal .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  #feedback-modal .modal-title {
    font-size: 1.25rem;
    padding-top: 18px;
  }
  #feedback-modal .modal-body {
    max-height: 50vh;
    font-size: 1.02rem;
  }
  #feedback-modal .comment {
    padding: 10px 10px 10px 10px;
    gap: 10px;
  }
  #feedback-modal .comment .avatar {
    width: 36px;
    height: 36px;
  }
  #feedback-modal .comment-form .avatar {
    width: 28px;
    height: 28px;
  }
  #feedback-modal .submit-comment-btn {
    font-size: 1rem;
    padding: 8px 12px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 767px) {
  #feedback-modal .modal-content {
    max-width: 100vw;
    width: 100vw;
    min-width: unset;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  #feedback-modal .modal-title {
    font-size: 1.1rem;
    padding: 14px 10px 0 10px;
  }
  #feedback-modal .modal-body {
    max-height: 60vh;
    padding: 10px 10px 4px 10px;
    font-size: 1rem;
  }
  #feedback-modal .modal-footer {
    padding: 10px 10px 10px 10px;
  }
  #feedback-modal .comment {
    padding: 8px 8px 8px 8px;
    gap: 8px;
    font-size: 0.98rem;
  }
  #feedback-modal .comment .avatar {
    width: 28px;
    height: 28px;
  }
  #feedback-modal .comment-form .avatar {
    width: 22px;
    height: 22px;
  }
  #feedback-modal .submit-comment-btn {
    font-size: 0.98rem;
    padding: 7px 10px;
  }
} 