/*
    Root Style
*/
html
{
    height: 100%;
    padding: 0;
    margin: 0;
}

body
{
    min-height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 
    Root Container
*/
.root-container-login, .root-container-email-sender, .root-container-reset-password, .root-container-otp-verify
{
    background-color: #EEF2F5;
}

/* 
    Container LoginController
*/
.container-login, .container-email-sender, .container-reset-password, .container-otp-verify
{
    width: 384px;
    height: auto;
    margin: auto;
    padding: 1rem 2rem;
    background-color: #fff;
}

/* 
    Main root Container content
*/
.main-root-container
{
    min-height: 100vh !important;
}

/* 
    Form Login
*/
.form-login, .form-email-sender, .form-reset-password, .form-input-otp
{
    width: 100%;
    height: 100%;
}

.login-btn-container a, .send-btn-container a, .reset-password-btn-container a, .verify-otp-btn-container a
{
    width: 100%;
}

.btn-login, .btn-send, .btn-reset, .btn-verify
{
    background-color: #FF9228;
    color: white;
    width: 100%;
}

.btn-login:hover, .btn-send:hover, .btn-reset:hover, .btn-verify:hover
{
    color: white;
    background-color: #ff8407;
}

/*
    Subtitle Container(form email sender)
*/

.title-back-button
{
    font-size: 0.7rem;
}

.subtitle-container
{
    font-size: 0.7rem;
}

/*
    OTP Form
*/

.otp-field input
{
    width: 40px;
    height: 40px;
    text-align: center;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
}

.small-subtitle
{
    color: #758796;
}

.otp-reSend-button
{
    color: #FF9228;
}

.resend
{
    font-size: 0.7rem;
}

.otp-reSend-button
{
    cursor: default;
}

.otp-reSend-button.enabled
{
    cursor: pointer;
}

#back-button:hover
{
    cursor: pointer;
}


/*
    Top Navbar
*/

.top-navbar
{
    background-color: #FF9228;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    position: fixed;
    z-index: 100;
}

/* 
    Hamburger Menu
*/

.hamburger-menu
{
    cursor: pointer;
}

.hamburger-menu .hamburger-line
{
    background-color: #fff;
    width: 32px;
    height: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1)
{
    transform: rotate(45deg);
    transform-origin: 5% 50%;
}

.hamburger-menu.active .hamburger-line:nth-child(2)
{
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3)
{
    transform: rotate(-45deg);
    transform-origin: 5% 50%;
}

/* 
    Slider Navigation
*/

.slider-navigation
{
    position: fixed;
    background: linear-gradient(177deg, rgba(255,146,40,1) 45%, rgba(249,101,91,1) 99%);
    width: 250px;
    height: calc(100% - 60px);
    right: -250px;
    top: 60px;
    padding: 40px 0;
    transition: all 0.3s ease;
    z-index: 10;
    overflow-y: auto;
}

.slider-navigation.active
{
    right: 0;
    transition: right 0.3s ease;
}

.slider-img-avatar
{
    width: 65px;
    height: 65px;
}

.avatar-img
{
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}

.slider-img-avatar:hover .avatar-img
{
    transform: scale(1.3);
    transition: all 0.3s ease-in-out;
}

.slider-subtitle-profile-container > h6
{
    padding: 0;
    font-family: 'Saira', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.slider-subtitle-profile-container > span
{
    padding: 0;
    font-family: 'Saira', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.slider-navigation > hr
{
    width: 100%;
    color: #fff;
    margin-top: 2px;
}

.slider-menu > ul
{
    list-style: none;
    padding: 0;
}

.list-menu > a
{
    font-family: 'Saira', 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    width: 100%;
    display: block;
    padding: 10px 8px;
}

.list-menu > a:hover, .slider-logout-navigations:hover
{
    background-color: #f0f0f02a;
    border-radius: 6px;
}

.slider-logout-navigations > a
{
    font-family: 'Saira', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
}

.slider-logout-navigations
{
    padding: 10px 8px;
}

/* 
    Container Content
*/

.container-content
{
    width: 100%;
    height: calc(100% - 60px);
    padding: 80px 1rem 1rem ;
}

/* 
    Dashboard hero card
*/

.hero-card-dashboard-information
{
    flex-basis: calc(100% / 5 - 16px);
}

.card-items-dashboard-informations
{
    background-color: #F8F9FA;
}

/* 
    Table
*/

.number-table-column
{
    width: 60px;
}

.action-table-column
{
    width: 150px;
}

.name-table-column
{
    width: 20%;
    text-wrap: wrap;
}

.target-notification-table-column
{
    width: 10%;
}

.table tbody tr td a{
    text-decoration: none;
}

.table-title
{
    color: rgba(33, 37, 41, 0.75)
}

/* 
    Form input institusi
*/

.container-form-input
{
    min-height: 100% !important;
}

.input-deskripsi-form textarea
{
    resize: none;
}

/* 
    Upload foto instructor
*/

.upload-area {
    border: 2px dashed #cccccc;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border 0.3s ease;
}

.upload-area img {
    max-width: 100px;
}

.upload-area:hover {
    border-color: #FF9228;
}

.upload-area p {
    font-size: 18px;
    color: #666;
    margin: 10px 0 0;
}

.upload-area small {
    display: block;
    font-size: 12px;
    color: #999;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 
    profile admin
*/

.hero-container-section
{
    background-image:url(../images/background-hero.png), linear-gradient(133deg, rgba(238,130,26,1) 40%, rgba(249,101,91,1) 99%);
    background-size: cover;
    background-repeat: no-repeat;
}

.avatar-profile-admin
{
    max-width: 180px;
    max-height: 180px;
    min-height: 90px;
    min-width: 90px;
}

.subtitle-admin-profile
{
    text-align: center;
    color: #fff;
    font-family: 'Saira', 'Inter', sans-serif;
}

.subtitle-admin-profile span
{
    font-size: 1.1rem;
    font-weight: 500;
}

.subtitle-admin-profile small
{
    font-size: 0.9rem;
    font-weight: 400;
}

.avatar-camera-change
{
    background-color: rgba(0, 0, 0, 0.36);
}

.changes-foto-profile-container
{
    bottom: -4px;
    right: 5px;
}

/*
    Chart
*/

.chart-container
{
    width: auto;
    height: calc(100vh - 250px);
    background-color: #F8F9FA;
}

.chartpie-container, .chartPolar-container
{
    height: calc(100% / 2);
}

.chartpie-container
{
    border: 1px solid rgba(224, 221, 221, 0.93);
}

.chartPolar-container
{
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: rgba(224, 221, 221, 0.93);
}

.chartbar-container
{
    border-width: 1px 0px 1px 1px;
    border-style: solid;
    border-color: rgba(224, 221, 221, 0.93);
}

/*
    Sweet Alert
*/

.swal2-actions {
    margin-top: 10px;
}

.swal2-confirm, .swal2-cancel {
    margin: 0 5px;
}

.icons-searchbar
{
    top: 8px;
    left: 8px;
}

.icons-searchbar:hover
{
    filter: drop-shadow(1px 1px 1px #a1a1a1);
}

/*
    Download Link
*/

.download-link
{
    color: #007BFF;
    cursor: pointer;
}

.download-link:hover
{
    color: #0260c9;
}

.loader
{
    width: 75px;
    aspect-ratio: 1;
    display: grid;
}
.loader:before,
.loader:after
{
    content: "";
    grid-area: 1/1;
    width: 35px;
    aspect-ratio: 1;
    box-shadow: 0 0 0 3px #fff inset;
    filter: drop-shadow(40px 40px 0 #fff);
    animation: l8 2s infinite alternate;
}
.loader:after
{
    margin: 0 0 0 auto;
    filter: drop-shadow(-40px 40px 0 #fff);
    animation-delay: -1s;
}
@keyframes l8
{
    0%,10%   {border-radius:0}
    30%,40%  {border-radius:50% 0}
    60%,70%  {border-radius:50%}
    90%,100% {border-radius:0 50%}
}

.overlay-container
{
    background-color: #ff8407;
    z-index: 100;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

.subtitle-overlay-container span
{
    display: block;
    color: #fff;
    font-family: 'Saira', 'Inter', sans-serif;
    font-size: 1.25rem;
}

.list-menu a img
{
    margin-right: 8px;
}

/*
    Button Logout
*/

.btn-logout
{
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Saira', 'Inter', sans-serif;
    font-weight: 500;
}

/*
    Media query
*/

@media screen and (max-width: 576px) and (max-height: 932px)
{
    .dashboard-root-container
    {
        width: 100vw !important;
    }

    .hero-card-dashboard-information
    {
        flex-direction: column !important;
        gap: 1rem;
    }

    .card-items-dashboard-informations
    {
        width: 100%;
    }

    .form-institute-container, .form-department-container, .form-program-container, .form-building-container, .form-alat-container, .form-instruktor-container, .form-add-admin-container, .form-profile-admin-container
    {
        flex-direction: column;
    }

    .chart-container
    {
        flex-direction: column;
        height: auto;
    }

    .side-chart-container
    {
        max-width: 100% !important;
        width: 100% !important;
    }

    .chartPolar-container, .chartpie-container
    {
        width: 100%;
        height: auto;
    }

    .table-data-actions
    {
        flex-wrap: wrap;
    }

    .tables-topbar
    {
        flex-direction: column-reverse !important;
    }

    .table
    {
        min-width: 500px !important;
    }

    .table-container
    {
        overflow-x: auto !important;
    }

    .container-table-admin
    {
        display: none !important;
    }

    .tables-topbar-pengguna
    {
        align-items: start !important;
    }

    .main-container-table
    {
        flex-basis: 100% !important;
    }

    .content-management-user
    {
        height: 100%;
    }
}

@media screen and (max-width: 932px) and (orientation: landscape)
{
    .hero-card-dashboard-information
    {
        flex-direction: column !important;
        gap: 1rem;
    }

    .chart-container
    {
        flex-direction: column;
        height: auto;
    }

    .side-chart-container
    {
        max-width: 100% !important;
        width: 100% !important;
    }

    .chartPolar-container, .chartpie-container
    {
        width: 100%;
        height: auto;
    }

    .container-table-admin
    {
        display: none !important;
    }

    .tables-topbar-pengguna
    {
        align-items: start !important;
    }

    .main-container-table
    {
        flex-basis: 100% !important;
    }

    .content-management-user
    {
        height: 100%;
    }
}