﻿.dashboard-main-content {
    padding: 20px;
}

.dashboard-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

    .dashboard-card:hover {
        transform: scale(1.05);
    }

.dashboard-card-body {
    text-align: center;
    padding: 5px;
}

.dashboard-card-text {
    font-size: 2.5rem;
    font-weight: bold;
}
/* Màu sắc cho từng card */
.dashboard-card-checked {
    background-color: #e8f5e9; /* Xanh lá nhạt cho Đã chấm công */
}

.dashboard-card-not-checked {
    background-color: #fff3e0; /* Cam nhạt cho Chưa chấm công */
}

.dashboard-card-total {
    background-color: #e3f2fd; /* Xanh nhạt cho Tổng nhân viên */
}

.dashboard-card-meal {
    background-color: #fce4ec; /* Hồng nhạt cho Nhân viên mới */
}
/* Animation fade-in */
.dashboard-card, .card {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* Dark mode */
body.dark-mode {
    background-color: #212529;
    color: #f8f9fa;
}

    body.dark-mode .navbar-dark {
        background-color: #343a40 !important;
    }

    body.dark-mode .dashboard-card-checked {
        background-color: #4a7043;
    }

    body.dark-mode .dashboard-card-not-checked {
        background-color: #8c5a2a;
    }

    body.dark-mode .dashboard-card-total {
        background-color: #4b7289;
    }

    body.dark-mode .dashboard-card-new {
        background-color: #8a3e5c;
    }

    body.dark-mode .card {
        background-color: #343a40;
        color: #f8f9fa;
    }
/* Chia đôi biểu đồ và lịch */
.dashboard-chart-calendar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-chart-container, .dashboard-calendar-container {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 767.98px) {
    .dashboard-chart-container, .dashboard-calendar-container {
        flex: 100%;
    }
}
