/**
 * Payment Dashboard Specific Styles
 * ใช้ Bootstrap classes เป็นหลัก เพิ่มเติมเฉพาะที่จำเป็น
 */

/* ========== STAT CARDS ========== */
.stat-card {
    transition: transform 0.15s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-0.125rem);
}

/* ใช้ Bootstrap border utilities แทน */
.stat-card.total { border-left: 4px solid var(--bs-primary) !important; }
.stat-card.pending { border-left: 4px solid var(--bs-warning) !important; }
.stat-card.completed { border-left: 4px solid var(--bs-success) !important; }
.stat-card.overdue { border-left: 4px solid var(--bs-danger) !important; }

/* ========== PAYMENT STATUS BADGES ========== */
/* ใช้ Bootstrap badge classes เป็นหลัก */
.payment-status {
    font-size: 0.875rem;
    font-weight: 500;
}

/* เก็บเฉพาะที่ Bootstrap ไม่มี */
.status-pending { 
    background-color: #fff3cd; 
    color: #856404; 
}

.status-completed { 
    background-color: #d1edff; 
    color: #0c5460; 
}

.status-partial { 
    background-color: #f8d7da; 
    color: #721c24; 
}

/* ========== TABLE ENHANCEMENTS ========== */
.payment-table-container {
    max-height: 500px;
    overflow-y: auto;
}

/* ========== LOADING STATE ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .payment-table-container {
        max-height: 400px;
    }
}
