@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
a {
    text-decoration: none !important;
}

li {
    list-style: none;
}

body {
    font-family: "Nunito", sans-serif !important;
    font-optical-sizing: auto;
}

textarea {
    resize: none !important;
}

input::placeholder,
textarea::placeholder {
    color: #AAB8C5 !important;
}

.wrapper {
    display: flex;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
    background-color: #343A3F;
    color: #AAB8C5;
}

#sidebar {
    width: 90px;
    min-width: 90px;
    transition: all 0.25s ease-in-out;
    background-color: #3A444E;
    box-shadow: 1rem 0 2rem 0 rgba(0, 0, 0, .9);
    display: flex;
    flex-direction: column;
}

#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span,
#sidebar:not(.expand) a.sidebar-title span {
    display: none;
}

.toggle-btn {
    width: 30px;
    height: 30px;
    color: #fff;
    border-radius: 0.425rem;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #424e5e;
}

.toggle-btn i {
    color: #fff;
}

#sidebar.expand .sidebar-logo,
#sidebar a.sidebar-link span {
    animation: fadeIn .25s ease;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.sidebar-logo a {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 0.7rem 0;
    flex: 1 1 auto;
    z-index: 10;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #8391A1;
    display: block;
    white-space: nowrap;
    font-weight: 500;
    border-left: 3px solid transparent;
}
a.active{
    color: #fff;
    background-color: rgba(255,255,255,.075);
    border-left: 3px solid #727CF5;
}
a.sidebar-title {
    padding: .625rem 1.625rem;
    color: #8391A1;
    display: block;
    white-space: nowrap;
    font-weight: 700;
    border-left: 3px solid transparent;
}

.sidebar-link i,
.dropdown-item i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: rgba(255,255,255,.075);
    border-left: 3px solid #727CF5;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 90px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
} 

.sidebar-dropdown .sidebar-link {
    position: relative;
    padding-left: 3rem;
    transition: all 0.5s;
}

.sidebar-dropdown a.sidebar-link::before {
    content: "";
    height: 0.125rem;
    width: 0.375rem;
    background-color: #ffffff80;
    position: absolute;
    left: 1.8rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s;
}

.sidebar-dropdown a.sidebar-link:hover {
    background: transparent;
    border-left: 3px solid transparent;
    padding-left: 3.8rem;
    color: #7277f2;
}

/* NAVBAR */
.navbar {
    background-color: #3A444E;
    box-shadow: 0px 0px 35px 0px rgba(49, 57, 66, 0.5);
}
.navbar-expand .navbar-collapse {
    min-width: 200px;
}
.avatar {
    width: 40px;
    height: 40px;
}

/*FORM*/
.form-control {
    background-color: #454E5B !important;
    color: #AAB8C5 !important;
    border: none !important;
    scrollbar-width: thin;
    scrollbar-color: #343A3F #454E5B;
}
.form-select {
    background-color: #454E5B !important;
    color: #AAB8C5 !important;
    border: none !important;
}
.form-logs {
    margin-top: 15px;
    background-color: #37404A; 
    padding: 10px; 
    border-radius: 8px;
    color: #22B568;
    white-space: pre-wrap;
    box-shadow: 0px 0px 35px 0px rgba(49, 57, 66, 0.5);
    height: 760px;
    max-height: 760px;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #1B1B1B transparent;
}

.button-area {
    display: flex;
    justify-content: space-between;
}
.button-download {
    margin-top: 5px;
}

.button-action {
    margin-top: 5px;
}
/* Thanh tiến trình */
#progress-container {
    width: 100%;
    height: 20px;
    background-color: #454E5B;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

#progress-bar {
    height: 100%;
    width: 0;
    background-color: #0d6efd;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Nếu thanh tiến trình đạt 100% */
#progress-bar.bg-success {
    background-color: #28a745;
}

/* Nếu có lỗi trong tiến trình */
#progress-bar.bg-danger {
    background-color: #dc3545;
}
/**/
.manual-area {
    background-color: #39505E;
    border-left: 3px solid #38AFD1;
}
.manual-area p {
    margin-bottom: 0;
}
/*Restricted Page*/
.restricted_page {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.restricted_page img {
    max-width: 100%;
    height: auto;
    max-height: 400px !important; /* hoặc điều chỉnh theo mong muốn */
    object-fit: contain;
}
