﻿
#main-content {
    text-align: unset;
}

.introduction {
    text-align: unset !important;
}

.brand-name {
    position: relative;
    padding-top: 20px;
    /*font-family: 'Times New Roman';*/
    font-weight: bold;
}

    .brand-name .br-1 {
        color: var(--primary-color);
    }

    .brand-name .br-2 {
        color: var(--secondary-color);
    }

    .brand-name .br-3 {
        position: absolute;
        top: 9px;
        right: 0px;
        color: var(--primary-color);
        font-size: 0.6em;
    }


.ui.primary.buttons .button, .ui.primary.button {
    background-color: var(--primary-color);
}

.ui.secondary.buttons .button, .ui.secondary.button {
    background-color: var(--secondary-color);
}

.ui.negative.buttons .button, .ui.negative.button {
    background-color: var(--alert-error);
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    display: none; /* Initially hidden */
    z-index: 10;
}

    /* Tooltip button styling */
    .tooltip button {
        background-color: #333;
        color: #fff;
        border: none;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
    }

#report-news-content {
    background-color: ghostwhite;
    padding: 8px 16px;
}


.link:hover {
    background-size: 100% 100%;
}

.link {
    background-image: linear-gradient(transparent calc(100% - 1px), var(--text-highlight) 1px);
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: all 0.6s ease, -webkit-transform 0.6s ease;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    color: var(--background-main) !important;
}

.btn-secondary-outline {
    background-color: var(--background-main) !important;
    color: var(--secondary-color) !important;
    border: 2px solid var(--secondary-color) !important;
}

@media not all and (hover: none) {
    .btn-secondary:hover {
        opacity: 0.8;
    }

    .btn-muted:hover {
        opacity: 0.8;
    }

    .btn-secondary-outline:hover {
        background-color: var(--secondary-color) !important;
        color: var(--background-main) !important;
        border: 2px solid var(--secondary-color) !important;
    }
}

.btn-muted {
    background-color: var(--text-muted) !important;
    color: var(--background-main) !important;
}


/*        .loader-center {
            position: fixed;
            left: 0px;
            top: 0px;
            width: 100%;
            height: 100%;
            z-index: 9999;
        }*/

h1, h2, h3 {
    line-height: 145%;
}

.padding-0 {
    padding: 0;
}

.login-bar-header user-sign-in {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.margin-left-5 {
    margin-left: 5px;
}

.align-items-center {
    display: flex;
    align-items: center;
}

.margin-left-auto {
    margin-left: auto !important;
}

.justify-content-header {
    display: flex;
    justify-content: space-between;
    margin-top: 0 !important;
}

#main-content table {
    border-collapse: collapse;
    width: 100% !important;
    margin: 1em 0;
    border: 1px solid rgba(34,36,38,.15);
}

    #main-content table thead th {
        background: #f9fafb;
        padding: 12px 15px;
        text-align: left;
        font-weight: bold;
        border: 1px solid rgba(34,36,38,.15);
    }

    #main-content table tbody td {
        padding: 12px 15px;
        border: 1px solid rgba(34,36,38,.15);
    }

    #main-content table.ui.celled {
        border: none;
    }

        #main-content table.ui.celled td,
        #main-content table.ui.celled th {
            border: 1px solid rgba(34,36,38,.15);
        }


@media only screen and (min-width: 768px) and (max-width: 991px) {
    .ui.container {
        width: unset !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    .ui.grid.container {
        width: unset !important;
    }

    .ui.relaxed.grid.container {
        width: unset !important;
    }

    .ui.very.relaxed.grid.container {
        width: unset !important;
    }
}


@media only screen and (max-width: 767px) {

    #main-content table thead th {
        padding: 3px;
    }

    #main-content table tbody td {
        padding: 3px;
    }

    .ui.sidebar.menu .item {
        padding-top: 8.5px;
        padding-bottom: 8.5px;
    }

    .dropdown-title-left i {
        line-height: 24px;
        height: 100%;
    }
}

@media (max-width: 480px) {
    a {
        -webkit-tap-highlight-color: transparent;
        -webkit-focus-ring-color: transparent;
        outline: none;
    }

    .breadcrumb .ui.dropdown .menu > .item {
        max-width: 175px;
        padding: 8px !important;
    }

    .ui.dropdown .menu > * {
        white-space: normal !important;
    }
}

/* Full-screen overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(255 255 255);
    /*background: rgba(0, 0, 0, 0.8);*/ /* Dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: var(--primary-color);
}

/* Spinning loader */
.loader {
    width: 50px;
    height: 50px;
    /*            border: 5px solid rgba(255, 255, 255, 0.3);
            border-top: 5px solid #fff;*/
    border-radius: 50%;
    animation: spin 1s linear infinite;
    border: 5px solid rgb(16 1 1 / 30%);
    border-top: 5px solid #4a4444;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.img_lazy_list {
    width: 100% !important;
    max-width: 100% !important;
}

.img-item-list-post {
    width: 100% !important;
    border-radius: 5px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.swal-small-newuser {
    width: 350px !important; /* hoặc nhỏ hơn tuỳ ý */
    font-size: 13px;
}

.swal2-popup a:focus {
    outline: none !important;
    box-shadow: none !important;
}



.lbl-err {
    background-color: #ffeceb;
    color: #e53c31;
    padding: 3px;
    border-radius: 3px;
}

.lbl-suss {
    background-color: #e7fff4;
    color: #07a36b;
    padding: 3px;
    border-radius: 3px;
}

.lbl-dis {
    background-color: #e7fff4;
    color: #07a36b;
    padding: 3px;
    border-radius: 3px;
}

.lbl-nom {
    background-color: #f0eaf4;
    color: #845db0;
    padding: 3px;
    border-radius: 3px;
}

.tippy-box[data-theme~='light-border'] {
    background-color: #e0f2f1 !important;
    color: #000 !important;
    border: 1px solid #4db6ac !important;
}

    .tippy-box[data-theme~='light-border'][data-placement^='top'] > .tippy-arrow::before {
        border-top-color: #e0f2f1 !important;
    }

    .tippy-box[data-theme~='light-border'][data-placement^='bottom'] > .tippy-arrow::before {
        border-bottom-color: #e0f2f1 !important;
    }

    .tippy-box[data-theme~='light-border'][data-placement^='left'] > .tippy-arrow::before {
        border-left-color: #e0f2f1 !important;
    }

    .tippy-box[data-theme~='light-border'][data-placement^='right'] > .tippy-arrow::before {
        border-right-color: #e0f2f1 !important;
    }
