﻿/* =============== BASE ===============*/

:root {
    /* font size */
    --fz-heading: 2rem; /* sogan, tên thương hiệu*/
    --fz-primary: 1.6rem; /* nội dung chính */
    --fz-header: 1.2rem;
    --fz-icon: 1.2rem;
    --fz-normal: 1rem;
    --fz-sub: 0.7rem; /* description cho nội dung */
    --fz-nav: 0.8rem; /* navbar */
    /* text color */
    --text-primary: #c70401;
    --text-secondary: #737373;
    /* background color */
    --bg-primary: #c70401;
    --bg-secondary: white;
    /* border color card */
    --color-border-card: #eaeaea;
    /* border button */
    --btn-border: 30px;
    /* size avatar card */
    --width-img: 50px;
    --height-img: 50px;

    --success: #13ab25;
    --warning: #c70401;
}

.btn-full-w {
    width: 100%;
}

.btn-half-w {
    width: 40%;
}

.btn-full-w, .btn-half-w {
    background-color: var(--bg-primary);
    border-radius: var(--btn-border);
    color: white;
}

.label-form, form label {
    color: var(--text-secondary);
    font-size: var(--fz-normal);
    font-weight: 400;
}



.text-normal, label {
    font-size: var(--fz-secondary);
    color: var(--text-secondary);
}

.text-header {
    font-size: var(--fz-header);
    color: var(--text-primary);
}

.icon-header {
    color: var(--text-secondary);
    font-size: var(--fz-primary);
}

.container.app {
    height: 100%;
    padding: 0 8px;
}

    .container.app header {
        box-shadow: 0 4px 15px rgba(209, 207, 207, 0.6); /* Hiệu ứng bóng */
        min-height: 60px !important;
    }

.app footer {
    left: 0;
    right: 0;
    padding: 0;
}

.app footer i{
    font-size: var(--fz-icon);
}

.main {
    margin: 76px 0;
}

.main .card {
    border-color: var(--color-border-card) !important;
    width: 100%;
    box-shadow: 0 1px 14px rgba(70, 70, 70, 0.2);
    border-radius: 8px !important;
}

.main .card p {
    margin: 0;
}

.main .card p,
.main .card span {
    color: var(--text-secondary);
}

.main .card .avatar {
    width: var(--width-img);
    height: var(--height-img);
    background: #ccc;
    border-radius: 50%;
    overflow: hidden;
}

.main .card img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.tab-container .tabs button {
    font-size: calc(var(--fz-normal) - 2px);
}

.form-group input {
    border-radius: 20px !important;
}


/* =============== LOIGN PAGE ===============*/
.login {
    height: 100vh;
    padding: 0;
}

    .login .header {
        position: relative;
        width: 100%;
        height: 30vh;
    }

    .login .login-background {
        width: 100%;
        height: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    }

        .login .login-background img {
            width: 100%;
            background-size: cover;
        }

    .login .logo {
        position: absolute;
        width: 130px;
        height: 130px;
        background-color: rgb(243, 235, 235);
        border-radius: 50%;
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 18%);
        box-shadow: 0 4px 15px rgba(73, 67, 67, 0.6); /* Hiệu ứng bóng */
    }

        .login .logo img {
            width: 100%;
            border-radius: 50%;
            padding: 2px;
        }

.login-background img {
    width: 100%;
    height: 100%;
}

.login .header .trademark {
    position: absolute;
    color: var(--text-primary);
    margin: auto;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 240%);
    font-weight: 700;
}

.login .login-form {
    margin-top: 110px;
    margin-bottom: 30px;
}

    .login .login-form .btn-submit:active {
        background-color: #afafaf !important;
    }

.login .notify {
    margin: 100px 0 30px 0 !important;
}

.login .notify-instuct {
    width: 70%;
    margin: auto;
}



/* =============== BEHIND LOGIN ===============*/

/* =============== LAOUT ===============*/

/* =============== HEADER ===============*/


/* =============== FOOTER ===============*/


.app .footer {
    width: 100%;
    bottom: 0;
    height: 60px;
    border-top: 1px solid transparent;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    background-color: var(--bg-primary);
}

    .app .footer .navbar {
        border-top: 1px solid transparent;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    }

.group-container {
    padding: 0;
    height: 100%;
}

.selectors, .block {
    height: 100%;
    width: 100%;
}

.selectors button {
    border: 0;
    border-radius: 0;
    background-color: var(--bg-primary);
    width: 25%;
    margin-left: 0;
    padding: 6px 8px;
}

.selectors button:active {
    border: 0;
}

.selectors button:focus {
    border: 0;
    outline: 0;
    box-shadow: 0 0 0 0px;
}

.active, .selector-holder {
    display: flex;
    flex-direction: column;
}

.inactive {
    display: none;
}

.selector-holder span {
    font-size: 0.8rem;
}

.app footer a {
    color: white;
    font-size: var(--fz-nav);
    text-decoration: none;
}

/* =============== HOME ===============*/

.baocao header {
    box-shadow: none !important;
    background-color: white !important;
}

.baocao header p {
    max-width: 70%;
}

.baocao header span {
    color: var(--text-secondary);
    font-size: var(--fz-normal);
}

.baocaodoanhthu {
    border: 1px solid #ccc;
    border-radius: 12px;
    width: 48%;
    position: relative;
}

.baocaodoanhthu--increase {
    color: var(--success);
    border-color: var(--success) !important;
}

.baocaodoanhthu--decrease {
    color: var(--warning);
    border-color: var(--warning) !important;
}

.doanhthu__kyhieu {
    position: absolute;
    left: 3%;
    bottom: 0;
    top: 46%;
}
.doanhthu .doanhthu__quantity {
    font-size: calc(var(--fz-normal) + 3px);
}

.doanhthu .doanhthu__stage {
    color: var(--text-secondary);
}

.doanhthu__kyhieu span {
    font-size: var(--fz-sub);
}

/* ================ page: Thông tin tài khoản ================*/
.account-infor {
    margin-top: 100px !important;
}

    .account-infor .avatar {
        width: 100px;
        height: 100px;
        background-color: var(--bg-primary);
        margin: auto;
        position: relative;
    }

        .account-infor .avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

.avatar .upload {
    color: white;
    margin: auto;
    position: absolute;
    bottom: 40%;
    left: 35%;
    font-size: var(--fz-primary);
}

.account-infor .infor .name {
    color: var(--text-primary);
}

.account-infor .infor .account {
    color: var(--text-secondary);
    font-size: calc(var(--fz-sub) + 1px);
}

.account-action button {
    background-color: var(--text-secondary) !important;
    color: white;
    border-radius: 30px;
}

.account-action button a {
    color: white !important;
    font-size: var(--fz-normal);
    text-decoration: none !important;
}

/* ================ page: Cập nhật tài khoản ================*/

.update-form {
    margin-top: 60px;
}

.account-action.update button {
    width: 160px;
    padding: 4px 0;
}

.btn-update {
    background: rgb(1, 187, 1) !important;
}


/* ============== loading ================= */

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.6); /* tùy chỉnh mờ nền */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-spinner {
    width: 5rem;
    height: 5rem;
    background-color: #28a745;
    border-radius: 50%;
    opacity: 0;
    animation: spinner-grow 1s linear infinite;
}

@keyframes spinner-grow {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ============== confirm box ================= */
.jconfirm .jconfirm-box.jconfirm-type-animated {
    background-color: #c6a6a6;
}
