/* ============================================
   DISPUTES MANAGEMENT STYLES
   Professional, consistent with portal design
   ============================================ */

.disputes-container {
    padding: 0;
    background: #f8f9fa;
    min-height: 100vh;
}

/* ============================================
   HEADER SECTION
   ============================================ */

.disputes-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left .page-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-left .page-title i {
    font-size: 2rem;
    opacity: 0.9;
}

.header-left .page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
}

.header-right .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-right .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.stats-section {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #e9ecef;
}

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

.stat-card.total {
    border-left-color: #6c5ce7;
}

.stat-card.open {
    border-left-color: #ffeaa7;
}

.stat-card.in-review {
    border-left-color: #74b9ff;
}

.stat-card.resolved {
    border-left-color: #00b894;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card.total .stat-icon {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.stat-card.open .stat-icon {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
}

.stat-card.in-review .stat-icon {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.stat-card.resolved .stat-icon {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.stat-content .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3436;
    line-height: 1;
}

.stat-content .stat-label {
    font-size: 0.9rem;
    color: #636e72;
    margin-top: 0.25rem;
}

/* ============================================
   FILTERS SECTION
   ============================================ */

.filters-section {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.filters-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.filters-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-header h6 {
    margin: 0;
    font-weight: 600;
    color: #2d3436;
}

.filters-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #636e72;
    margin-bottom: 0.5rem;
}

.filter-group .form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-group .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* ============================================
   DISPUTES LIST
   ============================================ */

.disputes-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.disputes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dispute-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dispute-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.dispute-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.dispute-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 0.5rem 0;
}

.dispute-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #636e72;
}

.dispute-meta span {
    display: flex;
    align-items: center;
}

.dispute-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dispute-body {
    margin-bottom: 1rem;
}

.dispute-description {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dispute-type {
    font-size: 0.85rem;
    color: #74b9ff;
    font-weight: 500;
}

.dispute-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f2f6;
}

.dispute-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    font-size: 0.85rem;
    color: #636e72;
    display: flex;
    align-items: center;
}

.dispute-time .time-label {
    font-size: 0.85rem;
    color: #636e72;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status badges */
.badge.status-open {
    background: #ffeaa7;
    color: #e17055;
}

.badge.status-in_review {
    background: #74b9ff;
    color: white;
}

.badge.status-resolved {
    background: #00b894;
    color: white;
}

.badge.status-closed {
    background: #636e72;
    color: white;
}

.badge.status-escalated {
    background: #e17055;
    color: white;
}

/* Priority badges */
.badge.priority-low {
    background: #ddd;
    color: #636e72;
}

.badge.priority-medium {
    background: #fdcb6e;
    color: #e17055;
}

.badge.priority-high {
    background: #fd79a8;
    color: white;
}

.badge.priority-urgent {
    background: #e17055;
    color: white;
}

/* ============================================
   LOADING AND EMPTY STATES
   ============================================ */

.loading-state,
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: #2d3436;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #636e72;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-section {
    margin-top: 2rem;
    padding: 2rem 0;
}

.pagination .page-link {
    border: 1px solid #ddd;
    color: #636e72;
    padding: 0.75rem 1rem;
    margin: 0 0.125rem;
    border-radius: 8px;
}

.pagination .page-item.active .page-link {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #2d3436;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dispute-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dispute-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .dispute-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .disputes-header {
        padding: 1.5rem 0;
    }
    
    .header-left .page-title {
        font-size: 1.75rem;
    }
    
    .dispute-card {
        padding: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}