/* Feedback Dashboard Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Override body styles for sidebar layout */
.app-container .main-content {
    flex: 1;
    margin-left: 240px;
    padding: 20px;
    background: #f2f2f7;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.app-container.sidebar-collapsed .main-content {
    margin-left: 60px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .app-container .main-content {
        margin-left: 0;
        padding: 10px;
    }
    
    .app-container.sidebar-collapsed .main-content {
        margin-left: 0;
    }
}

.feedback-dashboard-container {
    background: #f2f2f7;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.header-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-text p {
    color: #86868b;
    font-size: 16px;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #007AFF, #5856D6);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #FF9500, #FF6B35);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #34C759, #30D158);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #AF52DE, #BF5AF2);
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px 0;
}

.stat-content p {
    color: #86868b;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Filters Container */
.filters-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

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

.filter-group label {
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    padding: 12px 16px;
    border: 2px solid rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.filter-group input::placeholder {
    color: #86868b;
}

/* Feedback List Container */
.feedback-list-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.feedback-list-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-list-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.list-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Feedback List */
.feedback-list {
    max-height: 600px;
    overflow-y: auto;
}

.feedback-item {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feedback-item:hover {
    background: rgba(0, 122, 255, 0.05);
}

.feedback-item:last-child {
    border-bottom: none;
}

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

.feedback-customer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.customer-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 4px 0;
}

.customer-info p {
    font-size: 14px;
    color: #86868b;
    margin: 0;
}

.feedback-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.rating-stars i {
    color: #FFD700;
    font-size: 14px;
}

.rating-stars i.empty {
    color: #d1d1d6;
}

.feedback-date {
    color: #86868b;
    font-size: 12px;
    font-weight: 500;
}

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

.feedback-experience {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.experience-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.experience-badge.positive {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

.experience-badge.negative,
.experience-badge.needs-improvement {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

.feedback-text {
    color: #1d1d1f;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.feedback-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #86868b;
    font-size: 12px;
}

.detail-item i {
    font-size: 12px;
}

.source-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
}

.pagination-btn {
    padding: 12px 20px;
    border: 2px solid rgba(0, 122, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #86868b;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: white;
    border-color: #007AFF;
    color: #007AFF;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #86868b;
    font-size: 14px;
    font-weight: 500;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #86868b;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: white;
    border-color: #007AFF;
    color: #007AFF;
}

/* Loading States */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #86868b;
    font-size: 16px;
    font-weight: 400;
}

.loading-state i {
    font-size: 20px;
    color: #007AFF;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #86868b;
}

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

.empty-state h3 {
    margin: 0 0 8px 0;
    color: #86868b;
    font-size: 18px;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    color: #c7c7cc;
    font-size: 14px;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-dashboard-container {
        padding: 16px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .header-text h1 {
        font-size: 24px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feedback-list-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .feedback-item {
        padding: 16px 20px;
    }
    
    .feedback-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .feedback-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .feedback-details {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 20px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .feedback-item {
        padding: 12px 16px;
    }
}
