﻿/* =========== DASAR LAYOUT =========== */
/*html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}*/

/* =========== HEADER =========== */
/*.app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 57px;
    z-index: 1030;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 0;
}

    .app-header .navbar-nav .nav-link {
        color: #6c757d;
        padding: 0.5rem 1rem;
    }

        .app-header .navbar-nav .nav-link:hover,
        .app-header .navbar-nav .nav-link:focus {
            color: #343a40;
        }*/

/* =========== SIDEBAR =========== */
/*.app-sidebar {
    position: fixed;
    top: 0;*/ /* Sidebar mulai dari paling atas */
    /*left: 0;
    bottom: 0;
    width: 250px;
    color: #fff;
    z-index: 1025;
    overflow-y: auto;
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar-brand {
    height: 57px;*/ /* Sesuaikan dengan tinggi header */
    /*display: flex;
    align-items: center;
    padding-left: 0.5rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}*/

/*.brand-link {
    color: #fff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.8rem;
    transition: width 0.3s ease-in-out;
}

.brand-image {
    width: 33px;
    height: 33px;
    margin-left: 0.2rem;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
}

.brand-text {
    font-weight: 300 !important;
    margin-left: 0.5rem;
    transition: margin-left 0.3s linear, opacity 0.3s ease, visibility 0.3s ease;
}*/

/* Sidebar Menu */
/*.sidebar-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.nav-sidebar {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

    .nav-sidebar .nav-item {
        position: relative;
        margin-bottom: 0;
    }

    .nav-sidebar .nav-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: #c2c7d0;
        transition: color 0.3s ease, background-color 0.3s ease;
    }

        .nav-sidebar .nav-link:hover,
        .nav-sidebar .nav-link:focus {
            color: #fff;
            background-color: rgba(255, 255, 255, 0.1);
        }

        .nav-sidebar .nav-link.active {
            color: #fff;
            background-color: rgba(255, 255, 255, 0.1);
        }

    .nav-sidebar .nav-icon {
        margin-right: 0.5rem;
        font-size: 1.1rem;
        text-align: center;
        width: 1.6rem;
    }

    .nav-sidebar .nav-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

.nav-item.menu-open > .nav-link .nav-arrow {
    transform: rotate(90deg);
}*/

/* Submenu */
/*.nav-treeview {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1rem;
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-item.menu-open > .nav-treeview {
    display: block !important;
}

.nav-treeview .nav-item {
    margin-bottom: 0;
}

.nav-treeview .nav-link {
    color: #c2c7d0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

    .nav-treeview .nav-link:hover,
    .nav-treeview .nav-link:focus {
        color: #fff;
    }

    .nav-treeview .nav-link.active {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.1);
    }*/

/* =========== MAIN CONTENT =========== */
/*.app-main {
    margin-left: 250px;
    padding-top: 57px;*/ /* Sama dengan tinggi header */
    /*min-height: 100vh;
    transition: margin-left 0.3s ease-in-out;
}

.app-content-header {
    position: relative;
    padding: 1rem 0;
    background-color: transparent;
    margin-bottom: 1rem;
}

.app-content {
    padding: 0 1rem 1rem 1rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}*/

/* =========== USER DROPDOWN =========== */
/*.dropdown-menu.show {
    display: block !important;
}

.user-menu .dropdown-menu {
    margin-top: 0;
    right: 0;
    left: auto;
    width: 280px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.user-header {
    padding: 20px;
    text-align: center;
    background-color: #007bff;
}

    .user-header img {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, 0.2);
        object-fit: cover;
    }

    .user-header p {
        margin-top: 10px;
        margin-bottom: 0;
        font-size: 16px;
        color: #fff;
    }

        .user-header p small {
            display: block;
            font-size: 12px;
        }

.user-footer {
    padding: 10px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
}

.user-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}*/

/* =========== RESPONSIVE RULES =========== */
/* Mobile Mode */
@media (max-width: 991.98px) {
    .app-sidebar {
        margin-left: -250px;
    }

    body.sidebar-open .app-sidebar {
        margin-left: 0;
        z-index: 1040;
    }

    .app-main {
        margin-left: 0;
    }

    /* Overlay saat sidebar terbuka */
    body.sidebar-open:before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1035;
    }
}

/* Desktop Mode */
@media (min-width: 992px) {
    body.sidebar-collapse .app-sidebar {
        margin-left: -250px;
    }

    body.sidebar-collapse .app-main {
        margin-left: 0;
    }
}

/* =========== MISCELLANEOUS =========== */
/* Error UI */
#blazor-error-ui {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffe0;
    color: #000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: none;
}

    #blazor-error-ui .reload,
    #blazor-error-ui .dismiss {
        cursor: pointer;
        margin-left: 1rem;
        font-weight: bold;
    }

/* Footer Styling */
.app-footer {
    padding: 1rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    margin-top: auto;
    margin-left: 0;
    width: 100%;
    transition: margin-left 0.3s ease-in-out;
}

body.sidebar-collapse .app-footer {
    margin-left: 0;
}

@media (max-width: 991.98px) {
    .app-footer {
        margin-left: 0;
    }
}

/* Utility Classes for Icons */
    .img-circle {
    border-radius: 50%;
}

.elevation-2 {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

/* Fix untuk animasi */
.hold-transition * {
    transition-duration: 0s !important;
}

body.hold-transition .app-wrapper {
    opacity: 0;
}

body:not(.hold-transition) .app-wrapper {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
