:root {
    /* Var Dasar  */
    --bg-nav-costum: #2f2f2f;
    --bg-sidebar: #495058;
    --bg-sidebar-1: #636970;

    --color-icon-1: white;
    --color-text-header-1: white;
    --color-text-header-2: white;
    --color-text-sidebar-1: #bababa;
    --color-text-sidebar-2: #9c9c9c;
    --logo-sidebar: url("icon-menu/sidebar-icon.png");

    /* Var DateTime (Default/Dark) */
    --bg-dt-wrapper: #464646;
    --bg-dt-icon: #111111;
    --border-dt: #2c2c2c;
    --color-dt-text: #ffffff;
}

[data-theme="dark"] {
    /* Mode Light/Pink */
    --bg-nav-costum: #fff1f5;
    --bg-sidebar: #de3f68;
    --bg-sidebar-1: #ad2648;

    --color-icon-1: #655e64;
    --color-text-header-1: #322e34;
    --color-text-header-2: #838383;
    --color-text-sidebar-1: white;
    --color-text-sidebar-2: white;
    --logo-sidebar: url("icon-menu/sidebar-icon.png");

    /* DateTime Light Mode */
    --bg-dt-wrapper: #ffffff;
    --bg-dt-icon: #de3f68;
    --border-dt: #e45478;
    --color-dt-text: #322e34;
}

/* Utils Text  */
.text-header-1 {
    color: var(--color-text-header-1);
}

.icon-svg-1 {
    fill: var(--color-icon-1);
}

/*SIDEBAR WRAPPER */
.sidebar {
    min-width: 5.5rem;
    max-width: 5.5rem;
    background: var(--bg-sidebar);
    transition: all 0.3s;
    padding: 0rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hide Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
.sidebar {
    scrollbar-width: none;
}

/*  Sidebar Header  */
.sidebar-header {
    flex-shrink: 0;
    color: var(--color-text-sidebar-1);
    font-size: 0.8rem;
    text-align: center;
    margin: 1.5rem 0;
}
.sidebar-header img {
    width: 90%;
    margin-bottom: 0.4rem;
}
.a-sidebar {
    color: var(--color-text-sidebar-1);
    flex: 0 0 auto;
}
.a-sidebar:hover {
    color: var(--color-text-sidebar-1);
}
.a-sidebar p {
    font-size: 0.7rem;
}

/* Menu Items */
.card-sidebar {
    color: var(--color-text-sidebar-2);
    text-align: center;
    font-size: 0.8rem;
    padding: 0.7rem 0.5rem;
    margin-bottom: 5px;
}
.active .card-sidebar,
.card-sidebar:hover {
    background: var(--bg-sidebar-1);
    color: white;
}
.active .card-sidebar .change-fill,
.card-sidebar:hover .change-fill {
    fill: white;
}
.change-fill {
    fill: var(--color-text-sidebar-2);
}
.card-sidebar p {
    margin: 0px !important;
}
.card-sidebar img {
    width: 40%;
    margin-bottom: 0.5rem;
}
.card-sidebar svg {
    width: 60%;
    margin-bottom: 0.5rem;
}

/* Footer & Settings */
.sidebar-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 1rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.help-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: background-color 0.2s;
    text-decoration: none;
}
.help-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.help-button img,
.help-button i {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* Darkmode Toggle */
.card-darkmode {
    position: relative;
    width: 100%;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}
#_checkbox {
    display: none;
}
.label-checkbox {
    position: relative;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.label-checkbox:active {
    transform: scale(0.95);
}
#tick_mark {
    position: relative;
    color: var(--color-text-sidebar-1);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
#_checkbox:checked + .label-checkbox #tick_mark {
    color: #ffd700;
}
.label-checkbox:hover #tick_mark {
    filter: brightness(1.2);
}

/* Icons */
.icon-sidebar-logo {
    content: var(--logo-sidebar);
    width: 90%;
}
.icon-dashboard {
    content: url("icon-menu/icon-dashboard.svg");
    width: 40%;
}
.icon-dashboard-op {
    content: url("icon-menu/icon-dashboard-op.svg");
    width: 40%;
}
.active .card-sidebar .icon-dashboard,
.card-sidebar:hover .icon-dashboard {
    content: url("icon-menu/icon-dashboard-a.svg");
}
.icon-exhaust {
    content: url("icon-menu/icon-exhaust.svg");
    width: 40%;
}
.active .card-sidebar .icon-exhaust,
.card-sidebar:hover .icon-exhaust {
    content: url("icon-menu/icon-exhaust.svg");
}
.icon-historical {
    content: url("icon-menu/icon-historical.svg");
    width: 40%;
}
.active .card-sidebar .icon-historical,
.card-sidebar:hover .icon-historical {
    content: url("icon-menu/icon-historical.svg");
}
.icon-predictive {
    content: url("icon-menu/icon-predictive.svg");
    width: 40%;
}
.active .card-sidebar .icon-predictive,
.card-sidebar:hover .icon-predictive {
    content: url("icon-menu/icon-predictive.svg");
}
.icon-alarm {
    content: url("icon-menu/icon-alarm.svg");
    width: 40%;
}
.active .card-sidebar .icon-alarm,
.card-sidebar:hover .icon-alarm {
    content: url("icon-menu/icon-alarm.svg");
}
.icon-plc {
    content: url("icon-menu/icon-plc.svg");
    width: 40%;
}
.active .card-sidebar .icon-plc,
.card-sidebar:hover .icon-plc {
    content: url("icon-menu/icon-plc.svg");
}
.icon-about {
    content: url("icon-menu/icon-about.svg");
    width: 100%;
}

/* Modal About  */
.about-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.about-modal-content {
    background-color: #2d2d30;
    border-radius: 8px;
    width: 830px;
    max-width: 90%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #4a4a4a;
}
.about-modal-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}
.about-modal-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background-color: #4a4a4a;
}
.about-modal-header img {
    width: 24px;
    height: 24px;
}
.about-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}
.about-modal-body {
    padding: 0.5rem 1.5rem 0 1.5rem;
}
.about-box {
    border: 1px solid #4a4a4a;
    background-color: #383838;
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.about-text-content {
    flex: 1;
}
.about-text-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1rem 0;
}
.about-text-content p {
    font-size: 0.9rem;
    color: #c9d1d9;
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
    font-style: italic;
}
.about-text-content small {
    font-size: 0.8rem;
    color: #8b949e;
    font-style: italic;
}
.about-logo img {
    width: 150px;
}
.about-modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}
.about-modal-footer .btn-ok {
    padding: 0.5rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: #2f81f7;
    color: white;
    transition: background-color 0.2s;
}
.about-modal-footer .btn-ok:hover {
    background-color: #4892f8;
}

/*NAVBAR & DATE TIME- */
.img-logo-header {
    width: 15%;
}

.navbar-costum {
    background: var(--bg-nav-costum);
    padding: 1rem;
    padding-right: 0px !important;
    transition: background 0.3s;
}

.datetime-wrapper {
    display: inline-flex;
    align-items: stretch;
    background-color: var(--bg-dt-wrapper);
    border: 1px solid var(--border-dt);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1.5rem;
    height: 38px;
    transition: all 0.3s;
}

.datetime-icon {
    background-color: var(--bg-dt-icon);
    width: 40px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.img-calender {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.datetime-text {
    display: flex;
    align-items: center;
    color: var(--color-dt-text);
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    padding: 0 15px;
    white-space: nowrap;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

/* Dropdown Settings */
.drop-setting {
    background: transparent;
    color: white;
    padding: 0px !important;
    margin-left: 1rem;
}
.drop-setting img {
    width: 40%;
}
.dropdown-menu-lg-start[data-bs-popper] {
    right: 0 !important;
    left: -8rem !important;
}
.dropdown-item:focus {
    background: #636970 !important;
    color: white !important;
}
