/* =====================================================
   NEW FEEDBACK SYSTEM STYLES
   ===================================================== */

/* Reviews Statistics Section */
.reviews-stats-section {
    padding: 60px 0;
    background: #3A84C5;
    color: white;
    position: relative;
    overflow: hidden;
}

.reviews-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.stats-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stats-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    gap: 24px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    justify-content: center; /* centers the columns as a group */
    align-items: stretch; /* ensure equal card heights in each row */
}

.stats-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Perfect centering of content in taller rows */
    display: grid;
    place-items: center;      /* centers each child horizontally and vertically */
    align-content: center;    /* centers the whole content block if there are multiple rows */
    place-content: center;    /* additional guarantee for vertical + horizontal centering */
    row-gap: 12px;
    text-align: center;
    min-height: 220px;
    height: 100%;
    width: 100%; /* ensure each card fills its grid column width */
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.stats-card:hover::before {
    opacity: 1;
}

/* Overall Stats Card */
.overall-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* true vertical centering within the card */
    gap: 16px;
    height: 100%;
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.stats-content {
    flex: 1;
    text-align: center;
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Average Rating Card */
.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* true vertical centering within the card */
    gap: 12px;
    height: 100%;
}

.average-rating .stats-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.average-rating .rating-stars {
    justify-content: center;
    gap: 4px;
}

.average-rating .rating-stars i {
    font-size: 20px;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.average-rating .rating-stars i:hover {
    transform: scale(1.1);
}

/* Rating Distribution Card */
.rating-distribution {
    grid-column: auto;
    align-items: center; /* center content vertically */
    text-align: center;
    justify-content: center;
}

.distribution-header {
    text-align: center;
    margin-bottom: 16px;
}

.distribution-header h3 {
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 700;
    margin: 0;
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.rating-bar:hover {
    transform: translateX(8px);
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 100px;
}

.rating-bar .rating-stars {
    display: flex;
    gap: 2px;
}

.rating-bar .rating-stars i {
    font-size: 16px;
    color: #fbbf24;
}

.rating-count {
    font-weight: 600;
    color: #374151;
    min-width: 30px;
    text-align: center;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 6px;
    transition: width 1s ease;
    position: relative;
}

.rating-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.rating-percentage {
    font-weight: 600;
    color: #374151;
    min-width: 44px;
    text-align: right;
    font-size: 12px;
}

/* Additional Stats Card */
.additional-stats {
    grid-column: span 1;
}

.additional-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.additional-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.additional-stat:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.additional-stats .stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive Design for Stats */
@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 320px);
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        max-width: 760px;
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .reviews-stats-section {
        padding: 40px 0;
    }
    
    .stats-header h2 {
        font-size: 2rem;
    }
    
    .stats-header p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 600px;
        justify-items: stretch;
    }
    
    .rating-distribution {
        grid-column: span 1;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .overall-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .rating-info {
        justify-content: space-between;
        min-width: auto;
    }
    
    .rating-percentage {
        text-align: left;
    }
    
    .additional-stats-grid {
        gap: 16px;
    }
    
    .additional-stat {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-header h2 {
        font-size: 1.8rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Initial state for rating fills - will be animated by JavaScript */
.rating-fill {
    width: 0%;
}

/* Admin Review Cards Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Featured Reviews */
.featured-reviews-section {
    padding: 24px 0 8px 0;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.featured-header h2 {
    margin: 0;
    font-size: 24px;
}

.featured-nav {
    display: flex;
    gap: 8px;
}

.featured-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.featured-arrow.left { left: -12px; }
.featured-arrow.right { right: -12px; }

.featured-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.featured-carousel-wrapper {
    position: relative;
    margin-top: 12px;
}

.featured-carousel {
    display: flex;
    gap: 16px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.featured-carousel .feedback-card {
    flex: 0 0 33.333%;
}

@media (max-width: 1024px) {
    .featured-carousel .feedback-card {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .featured-carousel .feedback-card {
        flex: 0 0 100%;
    }
}

.gallery-grid.hidden {
    display: none;
}

/* Admin Review Card */
.review-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.review-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.review-card-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.review-card-body {
    margin-bottom: 15px;
}

.review-course {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-comment {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 4px;
}

.review-date {
    color: #9ca3af;
    font-size: 12px;
}

.review-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.review-card-actions .btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

/* Feedback Card Styles */
.feedback-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

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

/* Feedback Header */
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.feedback-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feedback-id {
    font-size: 12px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

.feedback-date-time {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.feedback-email-notification {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.average-score {
    text-align: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 80px;
}

.average-score-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.average-score-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

/* Rating Categories */
.rating-categories {
    margin: 20px 0;
}

.rating-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.rating-category:last-child {
    border-bottom: none;
}

.rating-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    flex: 1;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
}

.rating-stars .star {
    font-size: 16px;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.rating-stars .star.filled {
    color: #fbbf24;
}

.rating-stars .star.half {
    background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Comments Section */
.feedback-comments {
    margin: 20px 0;
}

.comment-section {
    margin-bottom: 16px;
}

.comment-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

/* Course and Content Rating */
.content-rating-section {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

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

.course-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
}

/* Image Attachment */
.feedback-image {
    margin: 16px 0;
    text-align: center;
}

.feedback-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.feedback-image-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.feedback-image-btn i {
    font-size: 16px;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Reviews Grid Layout */
.reviews-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
    /* Default: single column on small screens */
    grid-template-columns: 1fr;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.skeleton-meta {
    width: 200px;
    height: 20px;
    border-radius: 4px;
}

.skeleton-score {
    width: 80px;
    height: 60px;
    border-radius: 8px;
}

.skeleton-rating {
    width: 100%;
    height: 16px;
    border-radius: 4px;
    margin: 8px 0;
}

.skeleton-comment {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    margin: 12px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 40px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

.error-state i {
    font-size: 32px;
    color: #ef4444;
    margin-bottom: 12px;
}

.error-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 8px;
}

.error-state p {
    font-size: 14px;
    color: #7f1d1d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .feedback-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .average-score {
        align-self: flex-end;
        min-width: 70px;
        padding: 8px 12px;
    }
    
    .average-score-value {
        font-size: 24px;
    }
    
    .rating-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rating-stars {
        margin-left: 0;
    }
    
    .reviews-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .image-modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}

@media (max-width: 480px) {
    .feedback-card {
        padding: 12px;
    }
    
    .rating-stars .star {
        font-size: 14px;
    }
    
    .comment-text {
        padding: 8px;
        font-size: 13px;
    }
    
    .feedback-image-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Admin Form Styles */
.rating-categories-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.rating-categories-section h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.rating-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.star-rating-input {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.star-rating-input i {
    font-size: 18px;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.star-rating-input i:hover,
.star-rating-input i.active {
    color: #fbbf24;
}

.rating-value-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.calculated-average {
    margin-top: 16px;
    padding: 12px;
    background: #e0f2fe;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calculated-average label {
    font-weight: 600;
    color: #0369a1;
}

.calculated-average span {
    font-size: 18px;
    font-weight: 700;
    color: #0369a1;
}

/* Image Upload Styles */
.image-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.image-upload-area:hover {
    border-color: #3b82f6;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.upload-placeholder p {
    margin: 8px 0 4px 0;
    color: #374151;
    font-weight: 500;
}

.upload-placeholder small {
    color: #6b7280;
    font-size: 12px;
}

.image-preview {
    position: relative;
    display: inline-block;
    max-width: 200px;
}

.image-preview.hidden {
    display: none;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s ease;
}

.remove-image:hover {
    background: #dc2626;
}

/* Admin Table Styles */
.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-number {
    font-weight: 600;
    color: #374151;
    min-width: 30px;
}

.rating-stars-small {
    display: flex;
    gap: 2px;
}

.rating-stars-small i {
    font-size: 12px;
    color: #fbbf24;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.action-buttons {
    display: flex;
    gap: 4px;
}

.action-buttons .btn {
    padding: 4px 8px;
    min-width: auto;
}

.pagination-btn {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #f3f4f6;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Rating Chart Styles - Horizontal Layout */
.rating-chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.rating-chart-container h3 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.rating-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    min-width: 60px;
    text-align: right;
}

.rating-bar {
    flex: 1;
    height: 20px;
    background: #f3f4f6;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    border-radius: 10px;
    transition: width 0.3s ease;
    min-width: 2px;
}

.rating-count {
    font-size: 11px;
    color: #374151;
    font-weight: 500;
    min-width: 50px;
    text-align: left;
}

/* Toast Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast {
    animation: slideIn 0.3s ease;
}

/* Print Styles */
@media print {
    .feedback-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .feedback-image-btn {
        display: none;
    }
    
    .image-modal {
        display: none !important;
    }
}
