/* ======================================= */
/* AUTH PAGES - BACKGROUND & WRAPPER */
/* ======================================= */
body.auth-page {
    padding-top: 80px;
    background: linear-gradient(135deg, #AAC4F5 0%, #AAC4F5 100%);
    min-height: 100vh;
}

/* font merubah judul besar dan navigasi */
h1, h2, h3, .navbar-brand, .nav-link, .hero-title {
    font-family: "Karla", sans-serif !important;
    font-weight: 500 !important;
}

/* font merubah paragraf, tombol, dan teks biasa */
body, p, span, button, .btn, .body-text {
    font-family: "Archivo", sans-serif !important;
    font-weight: 400 !important;
}


/* ======================================= */
/* LOGIN PAGE */
/* ======================================= */
.login-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.661);
    border-color: #f0f0f0 1px solid;
}

.login-image-section {
    background: linear-gradient(135deg, #acc1e7 0%, #AAC4F5 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    min-height: 500px;
}

.login-image-section img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    opacity: 0.1;
}

.logo-koni {
    width: 120px;
    height: auto;
    position: static !important;
    opacity: 1 !important;
}

.login-image-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-image-icon {
    margin-bottom: 30px;
}

.login-image-icon i {
    font-size: 80px;
    color: white;
}

.login-image-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.login-image-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.login-card {
    background: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 28px;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-logo p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.login-footer p {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

@media (max-width: 991.98px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-image-section {
        border-radius: 12px 12px 0 0;
        padding: 40px 30px;
        min-height: 280px;
    }

    .login-image-icon i {
        font-size: 70px;
    }

    .login-image-section h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .login-image-section p {
        font-size: 14px;
    }

    .login-card {
        border-radius: 0 0 12px 12px;
        padding: 40px 30px;
    }

    .login-logo h1 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .login-image-section {
        padding: 30px 20px;
        min-height: 240px;
    }

    .login-image-icon i {
        font-size: 60px;
    }

    .login-image-section h2 {
        font-size: 22px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-logo h1 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 15px;
    }

    .login-image-section {
        padding: 25px 15px;
        min-height: 200px;
    }

    .login-image-icon i {
        font-size: 50px;
    }

    .login-image-icon {
        margin-bottom: 20px;
    }

    .login-image-section h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .login-image-section p {
        font-size: 12px;
    }

    .login-card {
        padding: 25px 15px;
    }

    .login-logo h1 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .login-logo p {
        font-size: 12px;
    }

    .login-footer {
        margin-top: 20px;
        padding-top: 15px;
    }

    .login-footer p {
        font-size: 11px;
    }
}

/* ======================================= */
/* FORGOT PASSWORD PAGE */
/* ======================================= */
.forgot-password-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.forgot-password-container {
    width: 100%;
    max-width: 450px;
}

.forgot-password-card {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.forgot-password-header {
    margin-bottom: 30px;
}

.forgot-password-header h1 {
    font-size: 26px;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}

.forgot-password-header p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.forgot-password-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.forgot-password-footer p {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    .forgot-password-wrapper {
        padding: 15px;
    }

    .forgot-password-card {
        padding: 40px 25px;
    }

    .forgot-password-header h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .forgot-password-header p {
        font-size: 12px;
    }

    .forgot-password-footer {
        margin-top: 25px;
    }
}

/* ======================================= */
/* VERIFY OTP PAGE */
/* ======================================= */
.verify-otp-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verify-otp-container {
    width: 100%;
    max-width: 450px;
}

.verify-otp-card {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.verify-otp-header {
    margin-bottom: 30px;
}

.verify-otp-header h1 {
    font-size: 26px;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}

.verify-otp-header p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.verify-otp-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.verify-otp-footer p {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    .verify-otp-wrapper {
        padding: 15px;
    }

    .verify-otp-card {
        padding: 40px 25px;
    }

    .verify-otp-header h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .verify-otp-header p {
        font-size: 12px;
    }

    .verify-otp-footer {
        margin-top: 25px;
    }
}

/* ======================================= */
/* RESET PASSWORD PAGE */
/* ======================================= */
.reset-password-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.reset-password-container {
    width: 100%;
    max-width: 450px;
}

.reset-password-card {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.reset-password-header {
    margin-bottom: 30px;
}

.reset-password-header h1 {
    font-size: 26px;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}

.reset-password-header p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.reset-password-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.reset-password-footer p {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    .reset-password-wrapper {
        padding: 15px;
    }

    .reset-password-card {
        padding: 40px 25px;
    }

    .reset-password-header h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .reset-password-header p {
        font-size: 12px;
    }

    .reset-password-footer {
        margin-top: 25px;
    }
}


/* ======================================= */
/* BUTTONS FOR AUTH PAGES */
/* ======================================= */
.btn-login,
.btn-submit {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #002a6b 0%, #001f50 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 42, 107, 0.3);
}

.btn-login:disabled,
.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.forgot-link,
.back-link {
    color: #002a6b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-link:hover,
.back-link:hover {
    color: #001f50;
    text-decoration: underline;
}

/* ======================================= */
/* ALERTS FOR AUTH PAGES */
/* ======================================= */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    border: 1px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.btn-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    padding: 0;
    font-size: 18px;
}

.btn-close:hover {
    opacity: 0.75;
}

/* ======================================= */
/* NAVBAR RESPONSIVE */
/* ======================================= */

@media (max-width: 992px) {

    /* Hapus padding & margin bawaan dari LI.nav-item */
    .navbar-nav .nav-item {
        padding: 0 !important;
        margin: 0 !important;
        line-height: normal !important;
    }

    /* Sudah oke, hanya kecilkan jarak nav-link */
    .navbar-nav .nav-link {
        padding: 6px 0 !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    /* rapikan collapse */
    .navbar-collapse {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white !important;
        padding: 10px 15px !important;
        border-bottom: 1px solid #ddd;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
        z-index: 2000;
    }

    /* tombol lebih kecil */
    .navbar-collapse .btn {
        width: auto !important;
        display: inline-block;
        padding: 6px 16px !important;
        font-size: 14px !important;
        margin-top: 10px;
        margin-left: 0 !important;
    }
}

/* ======================================= */
/* HAMBURGER & SIDEBAR MOBILE STYLES */
/* ======================================= */

/* Hamburger Icon Styling */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.75rem !important;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    z-index: 1002;
}

.navbar-toggler-icon {
    background-image: none !important;
    width: 25px;
    height: 3px;
    background-color: #333;
    display: block;
    transition: 0.3s;
    border-radius: 2px;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    width: 25px;
    height: 3px;
    background-color: #333;
    display: block;
    transition: 0.3s;
    border-radius: 2px;
    position: absolute;
    left: 0;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

/* Hamburger Active State */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg) translateY(11px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg) translateY(-11px);
}

/* Sidebar Overlay untuk Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

/* Sidebar Mobile Behavior */
@media (max-width: 991.98px) {
    #leftsidebar.sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 80px !important;
        width: 280px !important;
        height: calc(100vh - 80px) !important;
        z-index: 1001 !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    #leftsidebar.sidebar.show {
        transform: translateX(0);
    }

    /* Hide navbar collapse content ketika sidebar dibuka */
    .navbar-collapse.show {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* Desktop: Hide sidebar toggle */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }

    #leftsidebar.sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 80px !important;
        width: 235px !important;
        height: calc(100vh - 80px) !important;
        z-index: 999 !important;
        transform: none !important;
        overflow-y: auto;
    }
}

/* Navbar Collapse Styling */
.navbar-collapse {
    transition: max-height 0.3s ease;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid #ddd;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1050;
    }

    .navbar-nav {
        padding: 10px 15px;
    }

    .navbar-nav .nav-link {
        padding: 6px 0 !important;
        font-size: 14px !important;
    }

    .navbar-collapse .btn {
        width: auto !important;
        display: inline-block;
        padding: 6px 16px !important;
        font-size: 14px !important;
        margin-top: 10px;
    }

    .navbar-collapse > div {
        padding: 10px 15px;
    }
}

/* Smooth scrolling untuk sidebar */
#leftsidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

#leftsidebar::-webkit-scrollbar {
    width: 6px;
}

#leftsidebar::-webkit-scrollbar-track {
    background: transparent;
}

#leftsidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

