/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    background: #f5f7fade; /* Lebih terang dan bersih */
    color: #2c3e50; /* Biru keabu-abuan yang tegas */
}

a {
    color: #4154f1;
    text-decoration: none;
}

a:hover {
    color: #717ff5;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Nunito", sans-serif;
}

/*--------------------------------------------------------------
# Main Content Area
--------------------------------------------------------------*/
.main {
    margin-top: 20px !important;
    padding: 20px 30px !important;
    transition: all 0.3s !important;
    margin-left: 80px !important; /* Default collapsed width */
}

.sidebar:hover ~ .main,
.sidebar:hover ~ #footer {
    margin-left: 300px !important; /* Expanded width */
}

@media (max-width: 1199px) {
    .main {
        margin-left: 0 !important;
    }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
    margin-bottom: 10px;
}

.pagetitle h1 {
    font-size: 24px;
    margin-bottom: 0;
    font-weight: 600;
    color: #012970;
}

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.card {
    margin-bottom: 30px;
    border: 1px solid #e0e6ed; /* Border abu terang */
    border-radius: 1rem;
    background-color: #ffffff;
    /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06); */
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.card-header,
.card-footer {
    border-top: 1px solid #f1f4f9;
    border-bottom: 1px solid #f1f4f9;
    background-color: #f9fbfd;
    color: #5c6c8a;
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
}

.card-title {
    padding: 1.25rem 1.5rem 0 1.5rem;
    font-size: 20px;
    font-weight: 600;
    color: #012970;
    font-family: "Poppins", sans-serif;
    border-bottom: 1px solid #f1f4f9;
    margin-bottom: 1rem;
}

.card-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-family: "Poppins", sans-serif;
    color: #333;
    font-size: 15px;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 80px !important;
    z-index: 996;
    transition: width 0.3s;
    padding: 20px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
    box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
}

.sidebar:hover {
    width: 300px !important;
    padding: 20px;
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    color: #899bbd;
    font-weight: 600;
    margin: 10px 0 5px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-nav .nav-heading {
    opacity: 1;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #4154f1;
    background: #f6f9ff;
    padding: 10px 0;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s;
    text-overflow: ellipsis;
}

.sidebar:hover .sidebar-nav .nav-link {
    justify-content: flex-start;
    padding: 10px 15px;
    overflow: visible;
}

.sidebar-nav .nav-link i {
    font-size: 20px;
    color: #4154f1;
    min-width: 40px;
    text-align: center;
    margin-right: 0;
    flex-shrink: 0;
}

.sidebar:hover .sidebar-nav .nav-link i {
    margin-right: 15px;
}

.sidebar-nav .nav-link span,
.sidebar-nav .nav-link .bi-chevron-down {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar:hover .sidebar-nav .nav-link span,
.sidebar:hover .sidebar-nav .nav-link .bi-chevron-down {
    opacity: 1;
    width: auto;
    flex-grow: 1;
}

/* Pastikan teks tidak terpotong */
.sidebar:hover .sidebar-nav .nav-link span {
    overflow: visible;
    white-space: normal; /* Atau keep nowrap jika kamu tidak ingin wrapping */
    text-overflow: ellipsis;
}

.sidebar-nav .nav-link.collapsed {
    color: #012970;
    background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
    color: #899bbd;
}

.sidebar-nav .nav-link:hover {
    color: #4154f1;
    background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
    color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
    margin-left: auto;
    transition: transform 0.2s ease-in-out;
}

.sidebar:not(:hover) .sidebar-nav .nav-link .bi-chevron-down {
    display: none;
    margin-left: 0;
}

/* Sub-menu */
.sidebar-nav .nav-content {
    padding: 5px 0 0 0;
    margin: 0;
    list-style: none;
    transition: height 0.3s ease;
}

.sidebar-nav .nav-content a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #012970;
    transition: 0.3s;
    padding: 10px 0 10px 40px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav .nav-content a span {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-nav .nav-content a span {
    opacity: 1;
}

.sidebar-nav .nav-content a i {
    font-size: 12px !important;
    margin-right: 8px;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
    color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
    background-color: #4154f1;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.butom {
    display: inline-block;
    background: #47b2e4;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.butom:hover {
    background: #31a9e1;
    color: #fff;
}

/*--------------------------------------------------------------
# Header (from style.css)
--------------------------------------------------------------*/
#header {
    transition: all 0.5s;
    z-index: 997;
    padding: 10px 0;
}

#header.header-scrolled,
#header.header-inner-pages {
    background: rgba(40, 58, 90, 0.9);
}

#header.dash {
    background: #1d314e;
}
#header.contra {
    background: rgba(
        37,
        43,
        54,
        0.404
    ); /* Warna biru gelap dengan transparansi 80% */
    padding: 20px;
    border-radius: 15px; /* Membuat sudut membulat */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Bayangan untuk efek mengambang */
    backdrop-filter: blur(8px); /* Efek blur pada latar belakang */
    color: #ffffff; /* Warna teks putih agar kontras dengan latar belakang */
}

#header .logo {
    font-size: 30px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#header .logo a {
    color: #fff;
}

#header .logo img {
    max-height: 40px;
}

/*--------------------------------------------------------------
# Navigation Menu (from style.css)
--------------------------------------------------------------*/
.navbar {
    padding: 0;
}

.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar li {
    position: relative;
}

.navbar a,
.navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 30px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
    color: #47b2e4;
}

.navbar .getstarted {
    padding: 8px 20px;
    margin-left: 30px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    border: 2px solid #47b2e4;
    font-weight: 600;
}

.navbar .getstarted:hover {
    color: #fff;
    background: #31a9e1;
}

.navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 14px;
    top: calc(100% + 30px);
    margin: 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
    border-radius: 4px;
}

.navbar .dropdown ul li {
    min-width: 200px;
}

.navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    font-weight: 500;
    color: #0c3c53;
}

.navbar .dropdown ul a i {
    font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
    color: #47b2e4;
}

.navbar .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

.navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
}

@media (max-width: 1366px) {
    .navbar .dropdown .dropdown ul {
        left: -90%;
    }
    .navbar .dropdown .dropdown:hover > ul {
        left: -100%;
    }
}

/**
* Mobile Navigation (from style.css)
*/
.mobile-nav-toggle {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
    color: #fff;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }
    .navbar ul {
        display: none;
    }
}

.navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(40, 58, 90, 0.9);
    transition: 0.3s;
    z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
}

.navbar-mobile ul {
    display: block;
    position: absolute;
    top: 55px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 10px 0;
    border-radius: 10px;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;
}

.navbar-mobile a {
    padding: 10px 20px;
    font-size: 15px;
    color: #37517e;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
    color: #47b2e4;
}

.navbar-mobile .getstarted {
    margin: 15px;
    color: #37517e;
}

.navbar-mobile .dropdown ul {
    position: static;
    display: none;
    margin: 10px 20px;
    padding: 10px 0;
    z-index: 99;
    opacity: 1;
    visibility: visible;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
    min-width: 200px;
}

.navbar-mobile .dropdown ul a {
    padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
    font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover > a {
    color: #47b2e4;
}

.navbar-mobile .dropdown > .dropdown-active {
    display: block;
}
