@import url("https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
    --color-primary: #313380;
    --color-secondary: #fff114;
    --color-dark: #353535;
    --color-light: #efefef;
    /*--text-heading-color: #0D2056;*/
    /*--text-body-color: #1D1C1E;*/
    /*--text-line-height-sm: 1.2;*/
    /*--text-line-height-md: 1.5;*/
    /*--text-line-height-lg: 1.6;*/
    /*--text-heading-lg: 52px;*/
    /*--text-heading-md: 40px;*/
    /*--text-heading-sm: 34px;*/
    /*--text-heading-xs: 24px;*/
    /*--text-body-xxl: 26px;*/
    /*--text-body-xl: 24px;*/
    /*--text-body-lg: 20px;*/
    /*--text-body-md: 16px;*/
    /*--text-body-sm: 15px;*/
}

html,
body {
    height: auto;
    min-height: 100%;
    position: relative;
}

body {
    background: url("../img/bg-blue.webp") no-repeat;
    background-position: center;
    background-size: cover;
    font-family: "Mulish", sans-serif;
    color: var(--color-light);
}

/* === SIDEBAR ===*/
aside.app-sidebar {
    background: #fff;
}

.app-header {
    background: transparent !important;
    color: #fff !important;
    border: 0;
}

.app-header .nav-link {
    color: #fff;
}

.sidebar-brand {
    border: 0;
}

.sidebar-wrapper .nav-link {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 115px;
    background: #efefef;
    gap: 5px;
    color: #353535;
    transition: 0.3s all;
}

.sidebar-menu .nav-link p {
    padding-left: 0;
    font-size: 14px;
}

ul.sidebar-menu {
    padding: 1.5rem 2rem;
    gap: 1rem;
}

.sidebar-wrapper .nav-icon {
    font-size: 27px;
}

.sidebar-wrapper .nav-link:hover,
.sidebar-wrapper .nav-link.active {
    background: #fff114 !important;
}

/* === GLOBAL MAIN === */
a {
    text-decoration: none;
    transition: 0.3s all;
}

.app-main {
    justify-content: center;
    margin-bottom: 4rem;
}

h1.page-title {
    font-size: 40px;
    font-weight: 800;
}

.form-intro {
    color: #fff;
    padding-right: 20%;
    margin-bottom: 2.5rem;
}

.wrap-box {
    background: #fff;
    padding: 1rem;
    border-radius: 20px;
}

.btn {
    font-size: 20px;
    box-shadow: 0px 1px 2px 0px #0000000d;
    border-radius: 8px;
    padding: 12px 32px;
    transition: 0.3s all;
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-dark);
}

.btn-secondary {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-dark);
}

.btn-secondary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-light);
}

.header-right img {
    height: 50px;
}

.header-right {
    text-align: right;
}

/* === FOOTER === */
footer.app-footer {
    min-height: 26px;
    padding: 0;
    border: 0;
    position: relative;
}

footer.app-footer:before {
    content: "";
    display: block;
    width: 52%;
    height: 100%;
    background: var(--color-secondary);
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    transition: 0.3s all;
}

/* === HOME === */
.home-logo img {
    max-width: 300px;
    width: 100%;
}

.wrap-main-content {
    align-items: center;
}

.home-desc {
    padding-right: 0;
}

@media (min-width: 768px) {
    .home-desc {
        padding-right: 20%;
    }
}

.wrap-lab-img img {
    max-width: 100%;
    border-radius: 8px;
}

.home .wrap-box {
    padding: 5rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.home .wrap-right-content {
    padding-right: 0;
}

.home .app-content {
    padding-right: 0;
}

.lab-item {
    background: #fff;
    box-shadow: 0 20px 30px -4px #35353563;
    border-radius: 14px;
    padding: 12.5px;
    margin: 0 1rem;
}

.wrap-lab-content {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
}

.wrap-lab-content h3 {
    font-size: 24px;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.home .wrap-ribbon {
    position: relative;
}

.home .wrap-ribbon:before,
.booking .wrap-ribbon:before {
    content: "";
    display: none; /* Disable absolute ribbon */
}

.home.sidebar-open .wrap-ribbon:before {
    margin-bottom: 4rem;
}

.wrap-left-content {
    position: relative;
    z-index: 2;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 768px) {
    .wrap-left-content {
        padding-left: 3rem; /* Added space */
        padding-right: 0;
    }
    
    .home-title {
        width: 120%; /* Extend slightly to right on desktop if needed, or keep 100% */
        margin-left: -2rem; /* Pull back to edge */
        padding-left: 4rem;
    }
}

.wrap-lab-item {
    position: relative;
    z-index: 2;
}

.home-title h1 {
    color: var(--color-dark);
    margin: 0;
}

.home-title {
    /* height: 162px; Removed fixed height */
    display: flex;
    align-items: center;
    margin: 1rem 0;
    background: var(--color-secondary); /* Move background here */
    padding: 2rem; /* Add padding */
    width: 100%; /* Full width of container */
    position: relative;
    z-index: 1;
}

.home-title h1 {
    color: var(--color-dark);
    margin: 0;
    line-height: 1.2;
}

/* === LOGIN === */
.form-control {
    font-size: 14px;
    color: #aaaaaa;
    width: 100%;
    max-width: 430px;
}

.form-control::placeholder {
    color: #aaaaaa;
}

.form-control::-ms-input-placeholder {
    color: #aaaaaa;
}

.card-body .form-control {
    max-width: 100%;
}

span.input-group-text {
    background: #fff;
    color: #aaaaaa;
    font-size: 14px;
}

.input-group .form-control {
    border-left: 0;
}

span.input-group-text,
.form-control {
    height: 56px;
}

.login button {
    margin-top: 2rem;
}

body.login:after {
    content: "";
    display: block;
    width: 45%;
    height: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    transition: 0.3s all;
}

body.login.sidebar-open:after {
    width: calc(45% - 150px);
}

.login .wrap-right-content {
    position: relative;
    z-index: 2;
}

.login .wrap-right-content .wrap-content {
    text-align: center;
    max-width: 332px;
    margin: 0 auto;
}

.login .wrap-right-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-primary);
}

.login .wrap-right-content p {
    font-size: 14px;
    color: var(--color-dark);
}

.login footer.app-footer:before {
    width: 45%;
    z-index: 2;
}

.login.sidebar-open footer.app-footer:before {
    width: calc(45% - 37px);
}

/* === BOOKING & PROFIL === */
body.booking:after,
body.profil:after {
    content: "";
    display: block;
    width: 33.33333333%;
    height: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: 0.3s all;
}

.booking .app-header .navbar-nav-left .nav-link,
.profil .app-header .navbar-nav-left .nav-link {
    color: var(--color-primary);
}

.booking .wrap-lab-item,
.profil .wrap-lab-item {
    padding: 0 4rem;
    transition: 0.3s all;
}

.booking .wrap-ribbon:before {
    width: 33.33333333%;
    z-index: 2;
}

body.booking.sidebar-open:after,
body.profil.sidebar-open:after {
    width: calc(33.33333333% + 150px);
}

.booking.sidebar-open .wrap-ribbon:before,
.jadwal.sidebar-open .wrap-ribbon:before {
    width: calc(33.33333333% - 17px);
}

.booking.sidebar-open .wrap-lab-item,
.profil.sidebar-open .wrap-lab-item {
    padding: 0 2rem;
}

.booking footer.app-footer,
.profil footer.app-footer {
    background: var(--color-secondary);
    z-index: 3;
}

.booking footer.app-footer:before,
.profil footer.app-footer:before {
    display: none;
}

/* === BOOKING & JADWAL === */
.booking h1.page-title,
.jadwal h1.page-title,
.profil h1.page-title {
    font-size: 32px;
    margin: 0;
}

.wrap-right-content-inner {
    padding: 0 1rem;
}

.wrap-calendar {
    color: var(--color-dark);
    font-weight: 400;
    padding: 1.5rem 2rem;
}

.wrap-calendar a {
    font-weight: 400;
}

button.fc-prev-button.btn.btn-primary,
button.fc-next-button.btn.btn-primary {
    font-size: 14px;
    padding: 7px 20px;
    border-radius: 4px;
}

.booking .wrap-content,
.jadwal .wrap-content {
    margin-top: 1rem;
}

.wrap-calendar th a {
    font-weight: 600;
    font-size: 20px;
}

.right-content-header {
    align-items: flex-end;
    padding: 0 3rem;
}

.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary);
}

.fc .fc-daygrid-day-top {
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.sesi-1 {
    background: var(--color-secondary);
    color: var(--color-primary) !important;
}

.sesi-2 {
    background: var(--color-primary);
    color: var(--color-light) !important;
}

.fc-daygrid-event-dot {
    display: none;
}

a.fc-daygrid-event {
    padding: 10px;
    border-radius: 8px;
}

a.fc-daygrid-event:hover {
    color: var(--color-primary) !important;
}

.fc .fc-daygrid-day.fc-day-today {
    background: transparent !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame {
    background: var(--color-secondary) !important;
    border-radius: 8px;
}

.fc .fc-highlight,
.fc .active-day .fc-daygrid-day-frame {
    background: var(--color-primary);
    border-radius: 8px;
}

.fc .fc-day-disabled .fc-daygrid-day-frame .fc-highlight,
.fc .fc-day-past .fc-daygrid-day-frame .fc-highlight,
.fc .fc-day-full .fc-daygrid-day-frame .fc-highlight {
    background: transparent;
}

.fc .active-day .fc-daygrid-day-number {
    color: var(--color-light);
}

.active-day .fc-daygrid-event:hover {
    background: var(--color-light);
}

.active-day .fc-daygrid-event:hover {
    background: var(--color-light);
}

td.fc-daygrid-day {
    padding: 5px !important;
    border-radius: 8px;
}

.fc .fc-cell-shaded,
.fc .fc-day-disabled,
.fc .fc-day-past,
.fc .fc-day-full {
    background: transparent !important;
}

.fc .fc-cell-shaded .fc-daygrid-day-frame,
.fc .fc-day-disabled .fc-daygrid-day-frame,
.fc .fc-day-past .fc-daygrid-day-frame,
.fc .fc-day-full .fc-daygrid-day-frame {
    background: var(--color-light);
    border-radius: 8px;
}

.wrap-sessions {
    color: var(--color-dark);
    padding: 1rem 3rem;
}

.wrap-sessions label {
    margin-right: 1rem;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: 0.3s all;
}

label.session-1 {
    background: var(--color-secondary);
}

label.session-1:hover,
input[type="checkbox"]:checked + label.session-1 {
    background: var(--color-primary);
    color: var(--color-light);
}

label.session-2 {
    background: var(--color-primary);
    color: var(--color-light);
}

label.session-2:hover,
input[type="checkbox"]:checked + label.session-1 {
    background: var(--color-secondary);
    color: var(--color-dark);
}

.modal-body .form-control {
    max-width: unset;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.fc .fc-toolbar-title {
    text-align: center;
}

/* === PROFIL === */
.profil .form-intro {
    color: var(--color-dark);
    margin-bottom: 0;
}

.profil .wrap-lab-img {
    text-align: center;
    font-size: 40px;
    color: var(--color-dark);
}

.profil .wrap-lab-content {
    padding-top: 0;
}

.profil .wrap-lab-content h3 {
    margin-bottom: 2rem;
}

.profil .wrap-lab-content a i {
    margin-left: 1rem;
}

.profil .lab-item {
    padding-top: 2rem;
    padding-bottom: 1.8rem;
}

.profil .form-intro {
    padding: 0 5rem;
    transition: 0.3s all;
}

.profil.sidebar-open .form-intro {
    padding: 0 3rem;
}

.booking-item {
    background: rgb(255 255 255 / 0.1);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border: 1px rgb(255 255 255 / 0.2) solid;
    border-radius: 0.75rem;
    transition: 0.3s all;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-item:hover {
    transform: translateY(-2px);
}

.profil .wrap-content {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    margin-top: 2rem;
    padding: 0 3rem;
}

.booking-detail {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.booking-item .icon {
    background: var(--color-secondary);
    color: var(--color-dark);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
}

.booking-main h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

ul.booking-detail {
    list-style: none;
    padding-left: 0;
    font-size: 14px;
    display: flex;
    gap: 1.3rem;
    margin: 0;
}

ul.booking-detail i {
    color: var(--color-secondary);
    margin-right: 3px;
}

.booking-status i {
    margin-right: 3px;
}

span.badge.text-bg-warning {
    background: var(--color-secondary) !important;
    color: var(--color-dark) !important;
}

span.badge.text-bg-info {
    background: var(--color-primary) !important;
    color: var(--color-light) !important;
}

@media (max-width: 1300px) {
    .home.sidebar-open .wrap-ribbon:before {
        margin-bottom: 5.5rem;
    }

    .home .wrap-box,
    .booking .wrap-lab-item,
    .profil .wrap-lab-item {
        padding: 1rem 2rem;
    }

    .lab-item {
        margin: 0;
    }

    .profil .form-intro {
        padding: 0 2rem;
    }

    .profil.sidebar-open .form-intro {
        padding: 0 1rem;
    }
}

@media (max-width: 1200px) {
    .btn-primary {
        font-size: 18px;
    }

    .home-desc {
        padding-right: 0;
    }

    .home.sidebar-open .wrap-ribbon:before {
        margin-bottom: 7rem;
    }

    .profil.sidebar-open .wrap-lab-content h3 {
        font-size: 18px;
        margin-bottom: 1rem;
    }

    ul.booking-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 5px;
    }
}

@media (max-width: 1024px) {
    .btn-primary {
        font-size: 16px;
    }

    .profil .wrap-lab-content h3 {
        font-size: 18px;
        margin-bottom: 1rem;
    }

    .profil .wrap-lab-content {
        padding: 0;
    }

    .booking.sidebar-open .wrap-lab-item,
    .profil.sidebar-open .wrap-lab-item {
        padding: 0 1rem;
    }

    body.login.sidebar-open:after {
        width: 31%;
    }
}

@media (max-width: 991px) {
    .home .wrap-ribbon:before {
        margin-bottom: 4.5rem;
    }

    body.login.sidebar-open:after {
        width: 42%;
    }
}

@media (max-width: 921px) {
    .home .wrap-ribbon:before {
        margin-bottom: 6.5rem;
    }

    body.login:after,
    body.login.sidebar-open:after,
    .login footer.app-footer:before {
        width: 41%;
    }

    .login .wrap-right-content h2 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .wrap-left-content {
        text-align: center;
    }

    .wrap-main-content {
        gap: 2rem;
        padding-top: 4rem;
    }

    .home-title {
        justify-content: center;
    }

    .home .wrap-ribbon:before {
        margin: 0;
        top: 10.3rem;
    }

    .home .wrap-box {
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .home .wrap-box > .row {
        gap: 2rem;
    }

    .home .wrap-right-content {
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }

    .home .app-content {
        padding: 0 0.5rem;
    }

    .booking .wrap-lab-item,
    .profil .wrap-lab-item {
        padding: 0 1rem;
    }

    body.booking:after,
    body.profil:after {
        width: 100%;
        height: 40%;
    }

    .booking .wrap-ribbon:before,
    .jadwal .wrap-ribbon:before {
        width: 100%;
        margin: 0;
        top: 20%;
    }

    .booking .wrap-main-content,
    .profil .wrap-main-content,
    .jadwal .wrap-main-content {
        padding-top: 1rem;
        gap: 5rem;
    }

    .login .wrap-right-content .wrap-content {
        max-width: 80%;
    }

    .login .wrap-right-content h2 {
        padding: 0 15%;
    }

    .login .wrap-main-content {
        padding-top: 2rem;
        gap: 5rem;
    }

    .login .wrap-right-content {
        order: 1;
    }

    .login .wrap-left-content {
        order: 2;
    }

    body.login:after,
    body.login.sidebar-open:after {
        width: 100%;
        height: 17rem;
    }

    .login .app-header .nav-link {
        color: var(--color-primary);
    }

    .form-intro {
        padding-right: 0;
    }

    .form-control {
        width: 100%;
    }

    .login .input-group {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    body.profil:after {
        height: 20%;
    }

    .booking .wrap-lab-item,
    .profil .wrap-lab-item {
        padding: 0;
    }

    .right-content-header {
        padding: 0;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }

    .header-right {
        text-align: center;
        order: 1;
    }

    .header-left {
        order: 2;
    }

    .header-right img {
        height: auto;
        width: 100%;
        max-width: 297px;
    }

    .login .wrap-right-content h2 {
        padding: 0;
    }

    .booking h1.page-title,
    .jadwal h1.page-title,
    .profil h1.page-title,
    .fc .fc-toolbar-title {
        font-size: 24px !important;
    }

    .wrap-calendar {
        padding: 0;
    }

    .wrap-right-content-inner {
        padding: 0;
    }

    .booking-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .booking-detail {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login .wrap-main-content {
        gap: 3rem;
    }
}

@media (max-width: 390px) {
    .login .wrap-right-content .wrap-content {
        max-width: 100%;
    }
}
