/* ==========================================================
   CSS CHO MODULE TANCA DASHBOARD - PHIÊN BẢN CÂN BẰNG
   Hệ thống: Gas Long Hoa ERP
   Cập nhật: Tối ưu kích thước chữ ở mức vừa phải, dễ nhìn
========================================================== */

/* 1. KHUNG CHỨA CHÍNH (WRAPPER) */
.tanca-dashboard-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8fafc;
    min-height: 100%;
}

/* 2. CẤU TRÚC THẺ (CARD BENTO) */
.tanca-card {
    background: #ffffff;
    border-radius: 20px; 
    padding: 20px; 
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tanca-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

/* 3. TIÊU ĐỀ WIDGET - CÂN BẰNG */
.widget-title {
    font-size: 14px; 
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 4. LAYOUT NGHỈ PHÉP (LEAVE WIDGET) */
.leave-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-grow: 1;
}

.leave-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.leave-value {
    font-size: 44px; /* Giảm từ 52px xuống 44px */
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.leave-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.border-r {
    border-right: 1px solid #f1f5f9;
}

/* 5. PHẦN AVATAR */
.avatar-img {
    width: 48px; /* Giảm từ 52px xuống 48px */
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #f1f5f9;
    transition: transform 0.2s;
}

.cursor-zoom-in {
    cursor: zoom-in;
}

.avatar-img:hover {
    transform: scale(1.1);
}

/* 6. THANH TIẾN TRÌNH */
.progress-bar-bg {
    background-color: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 7. CUSTOM SCROLLBAR */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* 8. ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}