﻿@media (min-width: 992px) {
    .typo-line {
        padding-left: 140px;
        margin-bottom: 40px;
        position: relative;
    }

        .typo-line .category {
            transform: translateY(-50%);
            top: 50%;
            left: 0px;
            position: absolute;
        }
}

#map {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    margin-top: 70px;
}

.places-buttons .btn {
    margin-bottom: 30px
}

.space-70 {
    height: 70px;
    display: block;
}

.tim-row {
    margin-bottom: 20px;
}

.tim-typo {
    padding-left: 25%;
    margin-bottom: 40px;
    position: relative;
}

    .tim-typo .tim-note {
        bottom: 10px;
        color: #c0c1c2;
        display: block;
        font-weight: 400;
        font-size: 13px;
        line-height: 13px;
        left: 0;
        margin-left: 20px;
        position: absolute;
        width: 260px;
    }

.tim-row {
    padding-top: 50px;
}

    .tim-row h3 {
        margin-top: 0;
    }

.login-page {
    background-image: url("../img/background-thibidi.jpg");
    background-size: cover;
}

    .login-page .card-login .card-header {
        margin-top: 14px;
        width: 300px;
        height: 130px;
        margin-inline: auto;
        background-image: url(../img/brand-icon.jpg);
        background-position: top;
        background-size: cover;
    }

.beautiful-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: Roboto, sans-serif;
    color: #333;
    background: linear-gradient(to bottom, #ffffff, #f2f2f2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .beautiful-table thead {
        background-color: #f2f2f2;
        text-transform: uppercase;
        font-size: 14px;
        font-weight: bold;
    }

    .beautiful-table th,
    .beautiful-table td {
        padding: 0px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        border-radius: 4px;
        font-size: 12px;
    }

        .beautiful-table th:last-child,
        .beautiful-table td:last-child {
            border-right: none;
        }

    .beautiful-table tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .beautiful-table tbody tr:hover {
        background-color: #e5e5e5;
    }

        /*.beautiful-table tbody td:before {
            content: "";
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background-color: #4285F4;
            transform: scaleY(0);
            transition: transform 0.3s ease-in-out;
            border-radius: 4px 0 0 4px;
        }*/

        .beautiful-table tbody tr:hover td:before {
            transform: scaleY(1);
            border-radius: 0 4px 4px 0;
        }
    /**/
    /* .beautiful-table tbody td:first-child {
            background-color: #4285F4;
            border-right: 1px solid #ddd;
            color: white;
            padding-left: 4px;
            font-weight: bold;
        }*/

    .beautiful-table caption {
        font-size: 16px;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .beautiful-table tfoot {
        background-color: #f2f2f2;
        font-weight: bold;
    }

        .beautiful-table tfoot td {
            border-top: 1px solid #ddd;
        }

h7 a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

    h7 strong a:before {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #ed1b24;
        visibility: hidden;
        transform: scaleX(0);
        transition: transform 0.3s, visibility 0.3s;
    }

    h7 strong a:after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #ed1b24;
        visibility: hidden;
        transform: scaleX(0);
        transition: transform 0.3s, visibility 0.3s;
    }

    h7 strong a:hover {
        color: #ed1b24;
    }

        h7 strong a:hover:before,
        h7 strong a:hover:after {
            visibility: visible;
            transform: scaleX(1);
        }

        h7 strong a:hover:before {
            transform-origin: 0 0;
        }

        h7 strong a:hover:after {
            transform-origin: 100% 0;
        }

.custom-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-card-content {
    padding: 16px;
    transition: background-color 0.3s;
}

.custom-card-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
    display: flex;
    justify-content: center;
    /*  border-top:1px solid #e0e0e0;*/
}

.custom-card-description {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
}

.custom-card-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.custom-card:hover .custom-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.custom-img {
    vertical-align: middle;
    height: 324px;
    width: 512px;
}

.custom-card-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    margin-right: 8px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

    .custom-card-actions a:hover {
        background-color: #ed1b24;
        color: #ffffff;
        transform: scale(1.1);
    }

    /* Thêm hiệu ứng */
    .custom-card-actions a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .custom-card-actions a:nth-child(2) {
        transition-delay: 0.2s;
    }

/* Thêm hiệu ứng cho tất cả các phần tử */
.custom-card-actions a {
    transition-delay: 0.1s;
    transform: translateY(20px);
    opacity: 0;
}

.custom-card:hover .custom-card-actions a {
    opacity: 1;
    transform: translateY(0);
}

/* Hiệu ứng khi rê chuột vào thẻ */
.custom-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* CSS cho menu */
ul.new-menu-class {
    list-style: none;
    display: flex;
    padding: 0;
    border-radius: 4px;
}

.new-menu-class .active {
    border-radius: 5px;
background: linear-gradient(60deg, #ed1b24, #f68b94); 
}

ul.new-menu-class li {
    position: relative;
    display: inline-block;
    margin-right: 5px;
    vertical-align: top;
    transition: transform 0.3s, background-color 0.3s;
}

    ul.new-menu-class li:hover {
        transform: translateY(-5px);
    background: linear-gradient(60deg, #ed1b24, #f68b94); 
        border-radius: 5px;
    }

        ul.new-menu-class li:hover ul.submenu {
            display: block;
            animation: slideIn 0.3s forwards;
        }

    ul.new-menu-class li ul.submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        animation: fadeIn 0.3s forwards;
        min-width: 150px;
    }

        ul.new-menu-class li ul.submenu li {
            width: 100%;
            border-bottom: 1px solid #ebebeb;
            opacity: 0;
            animation: fadeIn 0.3s forwards;
            transition: background-color 0.3s;
        }

            ul.new-menu-class li ul.submenu li:last-child {
                border-bottom: none;
            }

    /* CSS cho liên kết trong menu */
    ul.new-menu-class li a {
        text-decoration: none;
        color: black;
        padding: 7px;
        /*display: block;*/
        opacity: 0;
        animation: fadeIn 0.3s forwards;
        font-family: Roboto, sans-serif;
        font-weight: bold;
    }

    /* Hiệu ứng hover */
    ul.new-menu-class li.hoverable:hover {
    background: linear-gradient(60deg, #ed1b24, #f68b94); 
    }

    ul.new-menu-class li ul.submenu li:hover {
    background: linear-gradient(60deg, #ed1b24, #f68b94); 
        border-radius: 5px;
        cursor: pointer;
    }

/* CSS cho menu trên màn hình nhỏ (mobile) */
@media screen and (max-width: 480px) {
    ul.new-menu-class {
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

        ul.new-menu-class li {
            margin-bottom: 10px;
            margin-right: 0;
        }

            ul.new-menu-class li a {
                padding: 8px;
            }
}

/* Animation keyframes */

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*danh sách */
/* CSS cho danh sách */
ul.beautiful-list {
    list-style: none;
    padding: 0;
}

    ul.beautiful-list li {
        margin-bottom: 20px;
        background-color: #f9f9f9;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        padding: 20px;
    }

        ul.beautiful-list li:last-child {
            margin-bottom: 0;
        }

/* CSS cho phần tử trong danh sách */
.list-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.list-item-number {
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.list-item-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.list-item-content {
    display: flex;
    align-items: center;
}

.list-item-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    border-radius: 50%;
    overflow: hidden;
}

    .list-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.list-item-details {
    flex: 1;
}

.list-item-note {
    margin-bottom: 10px;
    color: #777;
}

.list-item-code {
    font-weight: bold;
    color: #555;
}

.list-item-actions {
    display: flex;
    align-items: center;
}

    .list-item-actions a {
        margin-right: 10px;
        padding: 8px 12px;
        border: none;
        border-radius: 4px;
        color: #ffffff;
        font-size: 14px;
        text-decoration: none;
    }

        .list-item-actions a i {
            margin-right: 5px;
        }

        .list-item-actions a.btn-info {
            background-color: #2196f3;
        }

            .list-item-actions a.btn-info:hover {
                background-color: #1976d2;
            }

        .list-item-actions a.btn-success {
            background-color: #4caf50;
        }

            .list-item-actions a.btn-success:hover {
                background-color: #388e3c;
            }

        .list-item-actions a.btn-danger {
            background-color: #f44336;
        }

            .list-item-actions a.btn-danger:hover {
                background-color: #d32f2f;
            }

.custom-notification {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f8f8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 9999;
    max-width: 400px;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    border-radius: 10px;
    font-family: Roboto, sans-serif;
}

    .custom-notification.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

.custom-notification-content {
    text-align: center;
    margin-bottom: 20px;
}

    .custom-notification-content p {
        margin-bottom: 10px;
        color: #333333;
    }

.custom-notification-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

    .custom-notification-buttons button {
        margin: 0 10px;
        padding: 10px 20px;
        border: none;
        border-radius: 20px;
        font-weight: bold;
        cursor: pointer;
        text-transform: uppercase;
        transition: background-color 0.3s ease-in-out;
    }

        .custom-notification-buttons button.primary {
            background-color: #3498db;
            color: #ffffff;
        }

            .custom-notification-buttons button.primary:hover {
                background-color: #297db6;
            }

        .custom-notification-buttons button.secondary {
            background-color: #ffffff;
            color: #3498db;
            border: 2px solid #3498db;
        }

            .custom-notification-buttons button.secondary:hover {
                border-color: #297db6;
            }

.custom-notification-icon {
    font-size: 30px;
    margin-bottom: 20px;
    color: #3498db;
    transition: transform 0.3s ease-in-out;
}

.custom-notification.show .custom-notification-icon {
    transform: rotate(360deg);
}

/* Hiệu ứng rung */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

.custom-notification.shake {
    animation: shake 0.5s;
}

/* Hiệu ứng động */
@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.custom-notification.bounce {
    animation: bounce 0.5s;
}

/* Hiệu ứng xoay */
@keyframes rotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.custom-notification.rotate {
    animation: rotate 0.8s;
}

/* Lớp che phủ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}



.notificationCustom {
    position: fixed;
    width: 300px;
    background-color: #ff3366;
    border: 2px solid #ff3366;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

    .notificationCustom.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        animation: customSlideIn 0.3s forwards;
    }

    .notificationCustom.top {
        top: 20px;
    }

    .notificationCustom.bottom {
        bottom: 20px;
    }

    .notificationCustom.center {
        left: 42%;
        transform: translateX(-50%);
    }

    .notificationCustom.left {
        left: 20px;
    }

    .notificationCustom.right {
        right: 20px;
    }

    .notificationCustom i {
        margin-right: 10px;
        font-size: 18px;
        vertical-align: middle;
    }

    .notificationCustom.success {
        background-color: #00cc66;
        border-color: #00cc66;
    }

    .notificationCustom.error {
        background-color: #ff0000;
        border-color: #ff0000;
    }

    .notificationCustom .title {
        font-weight: 700;
        margin-bottom: 10px;
        color: #ffffff;
    }

    .notificationCustom .message {
        margin-bottom: 15px;
        color: #ffffff;
    }

    .notificationCustom .close-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 14px;
        color: #ffffff;
        cursor: pointer;
    }

        .notificationCustom .close-btn:hover {
            color: #cccccc;
        }

/* Animation for showing the notification */
@keyframes customSlideIn {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation for hiding the notification */
@keyframes customSlideOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Apply animation for hiding the notification */
.notificationCustom.hide {
    animation: customSlideOut 0.3s forwards;
}



.custom-notification {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f8f8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 9999;
    max-width: 400px;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    border-radius: 10px;
    font-family: Roboto, sans-serif;
}

    .custom-notification.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

.custom-notification-content {
    text-align: center;
    margin-bottom: 20px;
}

    .custom-notification-content p {
        margin-bottom: 10px;
        color: #333333;
    }

.custom-notification-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

    .custom-notification-buttons button {
        margin: 0 10px;
        padding: 10px 20px;
        border: none;
        border-radius: 20px;
        font-weight: bold;
        cursor: pointer;
        text-transform: uppercase;
        transition: background-color 0.3s ease-in-out;
    }

        .custom-notification-buttons button.primary {
            background-color: #3498db;
            color: #ffffff;
        }

            .custom-notification-buttons button.primary:hover {
                background-color: #297db6;
            }

        .custom-notification-buttons button.secondary {
            background-color: #ffffff;
            color: #3498db;
            border: 2px solid #3498db;
        }

            .custom-notification-buttons button.secondary:hover {
                border-color: #297db6;
            }

.custom-notification-icon {
    font-size: 30px;
    margin-bottom: 20px;
    color: #3498db;
    transition: transform 0.3s ease-in-out;
}

.custom-notification.show .custom-notification-icon {
    transform: rotate(360deg);
}

/* Hiệu ứng rung */
keyframes shake {
    0%

{
    transform: translateX(0);
}

20% {
    transform: translateX(-10px);
}

40% {
    transform: translateX(10px);
}

60% {
    transform: translateX(-10px);
}

80% {
    transform: translateX(10px);
}

100% {
    transform: translateX(0);
}

}

.custom-notification.shake {
    animation: shake 0.5s;
}

/* Hiệu ứng động */
keyframes bounce {
    0%

{
    transform: translateY(0);
}

25% {
    transform: translateY(-10px);
}

50% {
    transform: translateY(0);
}

75% {
    transform: translateY(-5px);
}

100% {
    transform: translateY(0);
}

}

.custom-notification.bounce {
    animation: bounce 0.5s;
}

/* Hiệu ứng xoay */
keyframes rotate {
    0%

{
    transform: rotate(0);
}

100% {
    transform: rotate(360deg);
}

}

.custom-notification.rotate {
    animation: rotate 0.8s;
}

/* Lớp che phủ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}
