﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Set outline input bootstrap */
input.form-control {
    outline: none !important;
    box-shadow: none !important;
}

select.form-select {
    outline: none !important;
    box-shadow: none !important;
}

.content {
    margin-left: 250px;
    padding: 20px;
    /* background-color: #f1f3f5; */
    min-height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header {
    background-color: #ffffff;
    font-weight: bold;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 8px;
}

    .status-badge.pending {
        background-color: rgba(255, 149, 0, 0.1);
        color: #ff9500;
    }

    .status-badge.approved {
        background-color: rgba(0, 157, 39, 0.1);
        color: #009d27;
    }

    .status-badge.rejected {
        background-color: rgba(255, 59, 48, 0.1);
        color: #ff3b30;
    }

    .status-badge.primary {
        background-color: rgba(0, 122, 255, 0.1);
        color: #007aff;
    }


/* Container menu */

.sidebar {
    height: 100vh;
    width: 250px;
    background-color: #f8f9fa;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

    .sidebar .logo {
        padding: 20px;
        text-align: center;
    }

        .sidebar .logo img {
            width: 200px;
        }

.sidebar .menu {
    padding: 10px 15px;
    list-style: none;
    margin: 0;
}

    .sidebar .menu li {
        margin-bottom: 5px;
        position: relative;
    }

        /* Thẻ A - sử dụng flex để đẩy badge sang phải */
        .sidebar .menu li a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            text-decoration: none;
            color: #5f6368; /* Màu chữ mặc định */
            font-size: 14px;
            border-radius: 8px; /* Bo góc cho item */
            transition: all 0.2s ease;
        }

            /* Tiêu đề menu */
            .sidebar .menu li a .menu-title {
                flex-grow: 1; /* Chiếm hết không gian còn lại để đẩy badge ra cuối */
            }

            /* Icon */
            .sidebar .menu li a img.menu-icon,
            .sidebar .menu li a i {
                width: 20px;
                text-align: center;
                margin-right: 12px;
            }

            /* Style cho Badge số thông báo */
            .sidebar .menu li a .badge-count {
                background-color: #ff3b30; /* Màu đỏ */
                color: white;
                font-size: 11px;
                font-weight: bold;
                min-width: 22px;
                height: 22px;
                border-radius: 50%; /* Hình tròn */
                display: flex;
                align-items: center;
                justify-content: center;
                margin-left: 10px;
            }

            /* Trạng thái Hover */
            .sidebar .menu li a:hover {
                background-color: #f1f3f4;
                color: #007aff;
            }

        /* Trạng thái Active */
        .sidebar .menu li.active > a {
            background-color: #f6fbfe; /* Nền xanh nhạt */
            color: #007aff;
            font-weight: 600;
        }

            /* Thanh sọc xanh bên trái khi Active */
            .sidebar .menu li.active > a:before {
                content: "";
                position: absolute;
                left: -15px; /* Đẩy sát lề sidebar */
                top: 10px;
                bottom: 10px;
                width: 4px;
                background-color: #007aff;
                border-radius: 0 4px 4px 0;
            }

        /* Xử lý màu Icon khi Active (Nếu dùng ảnh PNG/SVG) */
        .sidebar .menu li.active a img {
            filter: invert(39%) sepia(93%) saturate(1873%) hue-rotate(203deg) brightness(96%) contrast(92%);
        }

/*


    .sidebar .menu {
        padding: 0;
        margin: 0;
        list-style: none;
        padding: 0 15px;
    }

        .sidebar .menu li {
            position: relative;
        }

            .sidebar .menu li a {
                display: flex;
                align-items: center;
                padding: 10px 15px;
                text-decoration: none;
                color: #495057;
                font-size: 14px;
                transition: all 0.3s;
            }

                .sidebar .menu li a i {
                    margin-right: 10px;
                    font-size: 16px;
                }

                .sidebar .menu li a:hover {
                    background: rgba(246, 251, 254, 1);
                    color: #0d6efd;
                }

            .sidebar .menu li.active > a {
                color: #007aff;
                background: #f6fbfe;
                font-weight: 600;
            }


            .sidebar .menu li.active > .icon-hover > img {
                filter:  invert(39%) sepia(93%) saturate(1873%) hue-rotate(203deg) brightness(96%) contrast(92%);
            }

            .sidebar .menu li.active > a:before {
                background: rgba(0, 122, 255, 1);
                border-radius: 8px;
                bottom: 0;
                content: "";
                left: 0;
                position: absolute;
                top: 0;
                width: 3px;
            }

            .sidebar .menu li.active > a:hover {
                background-color: rgba(246, 251, 254, 1);
            }*/

/* Custom tab menu */

.nav-tabs .nav-link {
    color: #000;
    border: none;
    position: relative;
    font-weight: 500;
    padding-bottom: 10px;
}

    .nav-tabs .nav-link.active {
        color: #007bff;
    }

        .nav-tabs .nav-link.active::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 3px;
            background-color: #007bff;
        }

/* End Custom tab menu */

.content {
    margin-left: 250px;
    padding: 20px;
}

.table-container {
    background-color: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 15px;
}

    .table-container:not(:last-child) {
        margin-bottom: 20px;
    }

.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
}

    .table-custom thead {
        background-color: #f6fbfe;
    }

    .table-custom tbody {
        background-color: #f8f8f8;
    }

    .table-custom thead th:first-child {
        border-radius: 8px 0 0 8px;
    }

    .table-custom thead th:last-child {
        border-radius: 0 8px 8px 0;
    }

    .table-custom tbody td:first-child {
        border-radius: 8px 0 0 8px;
    }

    .table-custom tbody td:last-child {
        border-radius: 0 8px 8px 0;
    }

    .table-custom th,
    td {
        padding: 10px;
        text-align: left;
    }

    .table-custom tbody .col-action {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .table-custom tbody tr td {
        /* border-top: 1px solid #dee2e6; */
        vertical-align: middle;
    }

    .table-custom tbody tr th:first-child {
        border-right: 5px solid white;
        background-color: #f6fbfe;
        border-radius: 8px;
    }

    .table-custom tbody tr:hover {
        /*color: #ffffff;*/
        background-color: #e9f6fe;
        cursor: pointer;
    }

.table-container h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-view-all {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 14px;
    transition: all 0.3s;
}

    .btn-view-all:hover {
        background-color: #e9ecef;
        border-color: #0d6efd;
        color: #0d6efd;
    }

.icon-custom {
    padding: 10px;
    color: #007aff;
    background-color: #f6fbfe;
    border-radius: 5px;
}

/* Profile */

.user-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid #e7e7e7;
    background: #ffffff;
    padding: 5px;
    border-radius: 20px;
    z-index: 1050;
    cursor: pointer
}

    .user-info img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-left: 10px;
        cursor: pointer;
    }

    .user-info .profile-details {
        /* text-align: right; */
        margin: 0 10px 0 10px;
    }

.profile-dropdown {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    display: none;
    z-index: 1050;
}

    .profile-dropdown ul {
        list-style: none;
        padding: 0 15px;
        margin: 0;
    }

        .profile-dropdown ul li {
            border-bottom: 1px solid #dee2e6;
            /* padding-left: 5px; */
        }

            .profile-dropdown ul li:last-child {
                border-bottom: none;
            }

            .profile-dropdown ul li a {
                text-decoration: none;
                color: #495057;
                transition: all 0.3s;
                padding: 10px 5px 10px 5px;
                margin: 10px 0;
                border: none;
                border-radius: 8px;
            }

                .profile-dropdown ul li a:hover {
                    background-color: #f6fbfe;
                    color: #007aff;
                }

            .profile-dropdown ul li button {
                color: gray;
                display: block;
                width: 100%;
                padding: 5px 0px;
                border: none;
                text-align: left;
                cursor: pointer;
                transition: all 0.3s;
                margin: 10px 0;
                border-radius: 8px;
            }

            .profile-dropdown ul li .btn-logout:hover {
                background-color: #fdf7f7;
                color: #f3515d;
            }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1040;
    background: rgb(109 109 109 / 80%);
    backdrop-filter: blur(3px);
}

.profile-container {
    position: relative;
}

.search-container {
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    width: 100%;
    /* max-width: 500px; */
    background-color: white;
    /* border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 5px 12px;
    width: 100%;
    background-color: white; */
}

    .search-container input {
        border: none;
        outline: none;
        flex: 1;
    }

    .search-container .fa-search {
        color: #555;
        margin-right: 8px;
    }

    .search-container .reset-btn {
        color: #007bff;
        font-size: 14px;
        text-decoration: none;
        margin-left: 8px;
        cursor: pointer;
    }

.dropdown-toggle::after {
    position: absolute;
    right: 10px;
}

/*Background blur*/

.blur-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2;
}
