﻿/* ========================================
   Approve Dashboard Styles
   ======================================== */

/* Count Badge */
.count-badge {
    background-color: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    min-width: 30px;
    display: inline-block;
    text-align: center;
}

.count-badge-warning {
    background-color: #ffc107;
    color: #856404;
}

.count-badge-success {
    background-color: #28a745;
    color: white;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f59da5;
    color: #721c24;
}

/* Card Header */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title-flex {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* View All Link */
.view-link {
    color: var(--main-theme-color, #ff6b35);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.view-link:hover {
    text-decoration: underline;
}

.status-cancelled {
    background-color: #e2e3e5;
    color: #6c757d;
}

.count-badge-secondary {
    background-color: #6c757d;
    color: white;
}

.bold-highlight-sub {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.status-badge {
    transition: all 0.2s ease;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Container & General Setup */
.summary-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e6ed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Card Titles */
.card-status-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 15px;
}

/* Main Count (Big Numbers) */
.main-count {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 10px;
}

/* Sub Detail text */
.sub-detail {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0;
}

/* Special Highlight for Pending Card */
.border-warning-highlight {
    border-left: 5px solid #ffc107; /* สีเหลืองแจ้งเตือน */
}

.border-success-highlight {
    border-left: 5px solid #39ac41; /* สีเขียว */
}

.border-fail-highlight {
    border-left: 5px solid #ff251a; /* สีแดง */
}

/* Progress Bar Styling */
.progress-bar-container {
    background-color: #f3f4f6;
    border-radius: 10px;
    height: 8px;
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* Custom Colors for Progress Bars */
.bg-payment {
    background: linear-gradient(90deg, #3b82f6, #2563eb); /* สีน้ำเงิน */
}

/* Icon Styling */
.fa-exclamation-triangle {
    font-size: 1.2rem;
}

/* Flexbox utilities inside card */
.card-body-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-content-detail {
    flex-grow: 1;
}

.card-icon-large {
    font-size: 3rem; /* ปรับขนาดไอคอนตรงนี้ */
}