/* ============================================
   MODERN COMPLAINTS INDEX PAGE
   ============================================ */

/* Modern Hero Section */
.modern-hero-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.modern-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 100%;
    padding: 0;
    text-align: left;
}

.hero-text-content {
    text-align: center;
    margin-bottom: 3rem;
}

.modern-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.modern-hero-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Hero Stats Grid */
.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.hero-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    min-width: 0;
    flex: 1;
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hero-stat-icon.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.hero-stat-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.hero-stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.hero-stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
}

.hero-stat-content {
    flex: 1;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

/* Modern Filter Section */
.modern-filter-section {
    background: white;
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.modern-filter-form {
    background: #f9fafb;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.filter-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-card-label i {
    color: #6366f1;
}

.filter-card-input,
.filter-card-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #1f2937;
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.filter-card-input:focus,
.filter-card-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-card-select {
    cursor: pointer;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-filter-apply,
.btn-filter-clear {
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-filter-apply {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.btn-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-filter-clear {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-filter-clear:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Active Filters Tags */
.active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-chip i {
    font-size: 0.75rem;
}

.filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-chip-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modern Complaints Section */
.modern-complaints-section {
    padding: 3rem 0;
    background: #f9fafb;
}

.modern-complaints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.modern-complaint-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.modern-complaint-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-complaint-card:hover::before {
    transform: scaleX(1);
}

.modern-complaint-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #a5b4fc;
}

/* Complaint Header */
.modern-complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.complaint-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.complaint-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.complaint-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.complaint-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.complaint-user-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9375rem;
}

.complaint-date {
    font-size: 0.8125rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.complaint-status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.complaint-status-badge.resolved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

/* Brand Badge */
.complaint-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 1rem;
}

/* Title */
.modern-complaint-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content */
.modern-complaint-content {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.complaint-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.complaint-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

.complaint-tag i {
    font-size: 0.75rem;
}

/* Footer */
.modern-complaint-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.complaint-stats {
    display: flex;
    gap: 1.25rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-item i {
    color: #9ca3af;
}

.complaint-read-more {
    font-size: 0.875rem;
    color: #6366f1;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.3s ease;
}

.modern-complaint-card:hover .complaint-read-more {
    gap: 0.625rem;
}

/* Empty State */
.modern-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e5e7eb;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9ca3af;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.empty-state-description {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-empty-state {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-empty-state:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Modern Pagination */
.modern-pagination {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.pagination-info {
    display: flex;
    gap: 2rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.pagination-showing,
.pagination-total {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination-showing strong,
.pagination-total strong {
    color: #1f2937;
    font-weight: 700;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn,
.pagination-page {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
}

.pagination-btn:not(.disabled):hover,
.pagination-page:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    transform: translateY(-2px);
}

.pagination-page.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
}

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

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #9ca3af;
}

/* Modern CTA Section */
.modern-cta-section {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    overflow: hidden;
}

.cta-background-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.modern-cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: white;
    color: #6366f1;
}

.btn-cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modern-complaints-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-hero-title {
        font-size: 2.25rem;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-cards-grid {
        grid-template-columns: 1fr;
    }

    .modern-complaints-grid {
        grid-template-columns: 1fr;
    }

    .pagination-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}
