/* =====================================================
   IAMCoreUI CSS
   Popup + Loader + 3D Logo Loader (ENHANCED)
===================================================== */


/* =====================================================
   POPUP OVERLAY
===================================================== */

.iam-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn .2s ease;
}

.iam-popup-data-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn .2s ease;
}

/* =====================================================
   POPUP CONTAINER
===================================================== */

.iam-popup {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: iam-popup-show .25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.iam-popup-big {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 1400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: iam-popup-show .25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* =====================================================
   HEADER
===================================================== */

.iam-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: bold;
}

    .iam-popup-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: #1f2937;
    }


/* CLOSE BUTTON */

.iam-popup-btn-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #ef4444;
    padding: 5px;
    transition: .2s;
    font-weight: bold;
}

    .iam-popup-btn-close:hover {
        color: #ef4444;
        transform: scale(1.1);
        border: 1px solid;
    }


/* =====================================================
   BODY
===================================================== */

.iam-popup-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
}


/* CODE */

.iam-popup-code {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
}


/* MESSAGE */

.iam-popup-message {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}


/* SUPPORT FORM INSIDE */

.iam-popup-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* =====================================================
   FOOTER
===================================================== */

.iam-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}


/* =====================================================
   BUTTON STYLES
===================================================== */

.btn-primary {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: .2s;
}

    .btn-primary:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

.btn-secondary {
    background: #e5e7eb;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: .2s;
}

    .btn-secondary:hover {
        background: #d1d5db;
    }


/* =====================================================
   POPUP TYPE COLORS
===================================================== */

.popup-success {
    border-top-color: #22c55e;
}

.popup-error {
    border-top-color: #ef4444;
}

.popup-warning {
    border-top-color: #f59e0b;
}

.popup-confirm {
    border-top-color: #3b82f6;
}

.popup-delete {
    border-top-color: #dc2626;
}

.popup-info {
    border-top-color: #6366f1;
}

/* =========================================
   POPUP CONFIRM ADVANCED LAYOUT
========================================= */

.iam-popup._popupConfirm {
    display: grid;
    grid-template-columns: 6px 70px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
}


    /* ================= LEFT COLOR BAR ================= */

    .iam-popup._popupConfirm::before {
        content: "";
        grid-row: 1 / span 3;
        grid-column: 1;
        background: #3b82f6; /* default */
    }


    /* ================= LOGO ================= */

    .iam-popup._popupConfirm .iam-popup-logo {
        grid-column: 2;
        grid-row: 1 / span 3;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
    }

        .iam-popup._popupConfirm .iam-popup-logo img {
            width: 48px;
            height: 48px;
            object-fit: contain;
        }


    /* ================= CONTENT WRAPPER ================= */

    .iam-popup._popupConfirm .iam-popup-content {
        grid-column: 3;
        grid-row: 1 / span 3;
        display: grid;
        grid-template-rows: auto 1fr auto;
        padding: 15px;
    }


    /* ================= TITLE ================= */

    .iam-popup._popupConfirm .iam-popup-title {
        font-size: 18px;
        font-weight: 600;
        padding-bottom: 8px;
        border-bottom: 1px solid #eee;
    }


    /* ================= MESSAGE ================= */

    .iam-popup._popupConfirm .iam-popup-message {
        padding: 10px 0;
        font-size: 14px;
        color: #333;
    }


    /* ================= BUTTON ================= */

    .iam-popup._popupConfirm .iam-popup-buttons {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }


    /* ================= BUTTON STYLE ================= */

    .iam-popup._popupConfirm .btn-yes {
        background: #2563eb;
        color: #fff;
    }

    .iam-popup._popupConfirm .btn-no {
        background: #e5e7eb;
        color: #333;
    }


    /* ================= TYPE COLORS (LEFT BAR) ================= */

    .iam-popup._popupConfirm.popup-success::before {
        background: #22c55e;
    }

    .iam-popup._popupConfirm.popup-error::before {
        background: #ef4444;
    }

    .iam-popup._popupConfirm.popup-warning::before {
        background: #f59e0b;
    }

    .iam-popup._popupConfirm.popup-confirm::before {
        background: #3b82f6;
    }

    .iam-popup._popupConfirm.popup-delete::before {
        background: #dc2626;
    }

.iam-datagrid {
    width: 100%;
    overflow-x: auto;
}

    .iam-datagrid table {
        min-width: 100%;
        table-layout: auto;
    }

.filter-select-wrapper {
    position: relative;
    width: 100%;
}

.filter-select {
    width: 100%;
    padding-right: 28px; /* ruang untuk tombol clear */
}

.filter-clear {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: red;
    font-weight: bold;
    font-size: 14px;
    user-select: none;
}

    .filter-clear:hover {
        color: darkred;
    }
.iam-header-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.sortable {
    user-select: none;
    transition: background .2s;
}

    .sortable:hover {
        background: #f5f5f5;
    }

.sort-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.sort-default {
    opacity: .4;
}

.sort-active {
    font-weight: bold;
}

.sort-clear {
    opacity: .5;
    cursor: pointer;
    font-size: 11px;
    transition: .2s;
    border-radius: 50%;
    padding: 1px 4px;
}

    .sort-clear:hover {
        opacity: 1;
        background: #eee;
    }
.iam-progress-bar {
    height: 4px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 4px;
}

    /* ANIMATION */
    .iam-progress-bar::before {
        content: "";
        position: absolute;
        height: 100%;
        width: 30%;
        left: -30%;
        animation: loadingMove 1.2s infinite ease-in-out;
    }

    /* COLORS */
    .iam-progress-bar.color-blue::before {
        background: #2196f3;
    }

    .iam-progress-bar.color-red::before {
        background: #f44336;
    }

    .iam-progress-bar.color-green::before {
        background: #4caf50;
    }

    .iam-progress-bar.color-orange::before {
        background: #ff9800;
    }
/* =========================
   Calendar
========================= */
.iam-datagrid-calendar {
    padding: 10px;
    min-width: 280px;
    animation: iamFadeIn 0.15s ease-in-out;
    position: relative;
    display: inline-block;
}

.iam-datagrid-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .iam-datagrid-calendar-header select {
        border: 1px solid #d1d5db;
        border-radius: 6px;
        padding: 4px 6px;
        font-size: 13px;
        background: #fff;
        cursor: pointer;
    }

.iam-calendar-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

    .iam-calendar-trigger:hover {
        border-color: #6c63ff;
    }

.iam-calendar-text {
    font-size: 13px;
    color: #333;
}

.iam-calendar-icon {
    font-size: 14px;
}

.iam-datagrid,
.iam-table,
.iam-table td {
    overflow: visible !important;
}


.iam-calendar-popup-modern {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 999999;
    background: #fff;
    min-width: 340px;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

/* 🔥 operator inline */
.iam-calendar-op-inline {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

    .iam-calendar-op-inline button {
        border: 1px solid #ddd;
        background: #f8f8f8;
        padding: 4px 8px;
        border-radius: 6px;
        cursor: pointer;
    }

        .iam-calendar-op-inline button.active {
            background: #6c63ff;
            color: white;
            border-color: #6c63ff;
        }

/* input */
.iam-calendar-input-modern {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* range */
.iam-calendar-range-modern {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* footer */
.iam-calendar-footer {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
}

.btn-cancel {
    background: #eee;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
}

.btn-apply {
    background: #6c63ff;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
}

.iam-calendar-container {
    display: flex;
    width: 520px;
    background: #fff;
}

/* LEFT */
.iam-calendar-operators {
    width: 40%;
    border-right: 1px solid #eee;
    padding: 10px;
}

.op-item {
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
}

    .op-item:hover,
    .op-item.active {
        background: #4f46e5;
        color: #fff;
    }

/* RIGHT */
.iam-calendar-body {
    width: 60%;
    padding: 10px;
}

.iam-calendar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.iam-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-name {
    font-size: 11px;
    text-align: center;
    color: gray;
}

.day {
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}

    .day:hover {
        background: #eee;
    }

    .day.selected {
        background: #4f46e5;
        color: white;
    }

/* FOOTER */
.iam-calendar-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-top: 1px solid #eee;
}
/* ANIMATION KEYFRAMES */
@keyframes loadingMove {
    0% {
        left: -30%;
    }

    50% {
        left: 50%;
        width: 40%;
    }

    100% {
        left: 100%;
    }
}

/*==========================
    SIDEMENU
=================================*/
.iam-sidemenu {
    width: 260px;
    height: 100vh;
    background: #1e293b;
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.iam-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.iam-menu-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.iam-menu-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.iam-sidemenu.collapsed {
    width: 70px;
}

.iam-menu-text {
    flex: 1;
    margin-left: 10px;
}

.iam-menu-arrow {
    margin-left: auto;
    display: inline-block;
    align-items: center;
}

/* MOBILE */
@media (max-width: 768px) {
    .iam-sidemenu {
        transform: translateX(-100%);
    }

        .iam-sidemenu.open {
            transform: translateX(0);
        }
}

.iam-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.iam-mobile-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.iam-menu-header {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #0f172a;
}

.btn-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.iam-menu-root,
.iam-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.iam-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
}

    .iam-menu-link:hover {
        background: #334155;
    }

    .iam-menu-link.active {
        background: #2563eb;
    }

.iam-menu-icon {
    width: 20px;
    margin-right: 10px;
}

.level-2 .iam-menu-link {
    padding-left: 32px;
}

.level-3 .iam-menu-link {
    padding-left: 48px;
}

.iam-submenu {
    background: #0f172a;
}


/* ========================================= */
/* IAM DATAGRID */
/* ========================================= */

.iam-datagrid {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

    /* LOADING OVERLAY */
    .iam-datagrid .iam-loader {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    /* TOOLBAR */
    .iam-datagrid .grid-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .iam-datagrid .toolbar-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .iam-datagrid .toolbar-right {
        display: flex;
        gap: 10px;
    }

/* TABLE */
.iam-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

    .iam-table thead {
        background: #f8fafc;
    }

    .iam-table th {
        text-align: left;
        padding: 12px 14px;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        border-bottom: 1px solid #e5e7eb;
    }

    .iam-table td {
        padding: 12px 14px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14px;
        color: #444;
    }

    .iam-table tbody tr {
        transition: 0.2s;
    }

        .iam-table tbody tr:hover {
            background: #f9fafb;
        }

    /* EMPTY STATE */
    .iam-table .text-center {
        padding: 20px;
        color: #9ca3af;
    }

/* PAGINATION */
.grid-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

    /* SELECT */
    .grid-footer select {
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }

/* PAGINATION BUTTON */
.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pagination button {
        border: none;
        padding: 6px 12px;
        border-radius: 8px;
        background: #f3f4f6;
        cursor: pointer;
        transition: 0.2s;
    }

        .pagination button:hover:not(:disabled) {
            background: #e5e7eb;
        }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

    /* PAGE TEXT */
    .pagination span {
        font-size: 13px;
        color: #555;
    }

/* RESPONSIVE */
@media (max-width: 768px) {

    .iam-datagrid .grid-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .iam-datagrid .toolbar-left,
    .iam-datagrid .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .grid-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


/*=================================
    BUTTON ICON (SCALE 1.5x)
===================================*/

/* BASE */
.iam-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px; /* 6 → 9 */
    border: none;
    border-radius: 9px; /* 6 → 9 */
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

/* ===== SIZE SYSTEM ===== */

/* EXTRA SMALL */
.iam-btn-xs {
    padding: 5px 9px; /* 3x6 → 5x9 */
    font-size: 16px; /* 11 → 16 */
}

    .iam-btn-xs i,
    .iam-btn-xs .iam-loader-inline {
        width: 18px;
        height: 18px;
    }

/* SMALL */
.iam-btn-sm {
    padding: 8px 12px; /* 5x8 → 8x12 */
    font-size: 18px; /* 12 → 18 */
}

    .iam-btn-sm i,
    .iam-btn-sm .iam-loader-inline {
        width: 21px;
        height: 21px;
    }

/* MEDIUM */
.iam-btn-md {
    padding: 9px 15px; /* 6x10 → 9x15 */
    font-size: 21px; /* 14 → 21 */
}

    .iam-btn-md i,
    .iam-btn-md .iam-loader-inline {
        width: 24px;
        height: 24px;
    }

/* LARGE */
.iam-btn-lg {
    padding: 12px 21px; /* 8x14 → 12x21 */
    font-size: 24px; /* 16 → 24 */
}

    .iam-btn-lg i,
    .iam-btn-lg .iam-loader-inline {
        width: 27px;
        height: 27px;
    }

/* EXTRA LARGE */
.iam-btn-xl {
    padding: 15px 27px; /* 10x18 → 15x27 */
    font-size: 27px; /* 18 → 27 */
}

    .iam-btn-xl i,
    .iam-btn-xl .iam-loader-inline {
        width: 30px;
        height: 30px;
    }

/* ICON ONLY FIX */
.iam-btn-icon.icon-only {
    padding: 0;
}

.iam-btn-xs.icon-only {
    width: 36px;
    height: 36px;
}

.iam-btn-sm.icon-only {
    width: 42px;
    height: 42px;
}

.iam-btn-md.icon-only {
    width: 48px;
    height: 48px;
}

.iam-btn-lg.icon-only {
    width: 57px;
    height: 57px;
}

.iam-btn-xl.icon-only {
    width: 66px;
    height: 66px;
}

/* HOVER */
.iam-btn-icon:hover {
    opacity: 0.85;
}

/* DISABLED */
.iam-btn-icon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* TEXT */
.iam-btn-icon .iam-text {
    white-space: nowrap;
}

/* ICON DEFAULT */
.iam-btn-icon i {
    width: 24px;
    height: 24px;
    display: inline-block;
}

/* LOADER */
.iam-loader-inline {
    width: 24px;
    height: 24px;
    border: 3px solid currentColor; /* 2 → 3 biar proporsional */
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: iam-spin 0.7s linear infinite;
}

/* SPIN */
@keyframes iam-spin {
    to {
        transform: rotate(360deg);
    }
}

/* COLORS */
.iam-btn-icon.primary {
    background-color: #0d6efd;
    color: #fff;
}

.iam-btn-icon.success {
    background-color: #198754;
    color: #fff;
}

.iam-btn-icon.warning {
    background-color: #ffc107;
    color: #212529;
}

.iam-btn-icon.info {
    background-color: #0dcaf0;
    color: #fff;
}

.iam-btn-icon.danger {
    background-color: #dc3545;
    color: #fff;
}

.iam-btn-icon.outline {
    background-color: transparent;
    border: 1.5px solid currentColor; /* 1 → 1.5 */
}
/* ===============================
   IAM GRID LOADER (CENTER UNDER THEAD)
================================= */

.iam-table {
    position: relative;
}

/* Wrapper loader agar posisinya tepat */
.iam-table-wrapper {
    position: relative;
}

/* Loader posisi tengah body */
.iam-table-loader-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

/* Medium size */
.iam-table-loader.loader-md {
    width: 36px;
    height: 36px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: iam-spin 0.8s linear infinite;
}

.iam-table-row-expand {
    background-color: #f9f9f9;
}
/* Animasi */
@keyframes iam-spin {
    to {
        transform: rotate(360deg);
    }
}

.iam-fileuploader-drop-zone {
    width: 100%;
    min-height: 150px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: 0.2s;
    background: #E6F7EC;
}

    .iam-fileuploader-drop-zone:hover {
        border-color: #888;
        background: #B4F0C9;
        border: 2px solid #ccc;
    }
.iam-fileuploader-item {
    position: relative;
}

.iam-fileuploader-remove {
    position: absolute;
    top: 0px;
    left: 90%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: .2s;
}

    .iam-fileuploader-remove:hover {
        transform: translateX(-50%) scale(1.1);
        background: #dc2626;
    }
.hover {
    background: #f0fff5;
    border-style: solid;
}

.iam-fileuploader-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
}

.iam-fileuploader-placeholder {
    text-align: center;
    color: #888;
    padding: 20px;
}

.iam-fileuploader-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.iam-fileuploader-item {
    width: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.iam-fileuploader-body {
    height: 100px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .iam-fileuploader-body img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .iam-fileuploader-body iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.iam-fileuploader-filebox {
    font-size: 30px;
}

.iam-fileuploader-info {
    padding: 6px;
    font-size: 11px;
}

.iam-fileuploader-name {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iam-fileuploader-error {
    margin-top: 10px;
    background: #ff4d4f;
    color: white;
    padding: 6px;
    border-radius: 6px;
}
/* ================= RESPONSIVE ================= */



/* =====================================================
   ANIMATION
===================================================== */

@keyframes iam-popup-show {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =====================================================
   LOADER OVERLAY
===================================================== */

.iam-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
}

/* =========================
   LOGIN SPINNER
========================= */
.iam-login-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: iam-spin 0.6s linear infinite;
    margin-right: 10px;
    margin-top: 5px;
}

/* ANIMATION */
@keyframes iam-spin {
    to {
        transform: rotate(360deg);
    }
}
/* =====================================================
   SPINNER LOADER
===================================================== */

.iam-loader {
    border-radius: 50%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    animation: iam-spin 1s linear infinite;
}


/* SIZES */

.loader-sm {
    width: 24px;
    height: 24px;
}

.loader-md {
    width: 40px;
    height: 40px;
}

.loader-lg {
    width: 64px;
    height: 64px;
}


/* ANIMATION */

@keyframes iam-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/*=======================================================
    LOGO FLAT
=========================================================*/
.logo-flat-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-flat {
    animation: pulseFade 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0,255,200,0.3));
}

@keyframes pulseFade {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* =====================================================
   3D LOGO LOADER
===================================================== */

.loader-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.55);
    backdrop-filter: blur(4px);
    perspective: 900px;
    z-index: 12000;
}

.logo-loader {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
}

    .logo-loader .layer {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transform-origin: center;
        filter: drop-shadow(0 0 10px #6366f1);
    }

    .logo-loader img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


/* ROTATION */

.layer1 {
    animation: iam-rotate1 6s linear infinite;
}

.layer2 {
    animation: iam-rotate2 5s linear infinite;
}

.layer3 {
    animation: iam-rotate3 4s linear infinite;
}

@keyframes iam-rotate1 {
    from {
        transform: rotateY(0deg) translateZ(-25px);
    }

    to {
        transform: rotateY(360deg) translateZ(-25px);
    }
}

@keyframes iam-rotate2 {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-360deg);
    }
}

@keyframes iam-rotate3 {
    from {
        transform: rotateY(0deg) translateZ(25px);
    }

    to {
        transform: rotateY(360deg) translateZ(25px);
    }
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 600px) {

    .iam-popup {
        max-width: 92%;
        border-radius: 12px;
    }

    .iam-popup-header h3 {
        font-size: 16px;
    }

    .iam-popup-content {
        padding: 16px;
    }

    .iam-popup-footer {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}


/* ===============================
   FORM 2 KOLOM (IAM STYLE)
================================= */

.form-group-2-kolom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

    /* full width (misalnya textarea) */
    .form-group-2-kolom .form-group.full {
        grid-column: span 2;
    }

.form-group-3-kolom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px 20px;
}

    .form-group-3-kolom .form-group.full {
        grid-column: span 3;
    }

    .form-group-3-kolom .form-group.half {
        grid-column: span 1;
    }

/* default form group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    /* label */
    .form-group label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

/* input */
.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .form-input:focus {
        outline: none;
        border-color: #2563eb;
        background: #fff;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    }

/* checkbox style */
.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

    .form-group.checkbox label {
        font-weight: 500;
        font-size: 13px;
    }

/* validation */
.validation-message {
    font-size: 12px;
    color: #dc2626;
}

/* ===============================
   MOBILE (AUTO JADI 1 KOLOM)
================================= */
@media (max-width: 768px) {
    
    .form-group-2-kolom {
        grid-template-columns: 1fr;
    }

        .form-group-2-kolom .form-group.full {
            grid-column: span 1;
        }
}

/* ===============================
   FORM 4 KOLOM (IAM STYLE)
================================= */

.form-grid-3-kolom {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
    gap: 20px !important;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hari-kerja-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom checkbox */
    gap: 5px;
}

.hari-kerja-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===============================
   DROPDOWN
================================= */
/* ================= CONTAINER ================= */
.iam-dropdown-wrapper {
    /*min-width: 100px;*/
}
.iam-dropdown {
    width:100%;
    display: inline-block;
}

/* ================= CONTROL ================= */
.iam-dropdown-control {
    position: relative;
    border: 1px solid #ccc;
    padding: 8px 60px 8px 10px; /* 🔥 space untuk icon */
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

/* ================= TEXT ================= */
.iam-dropdown-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================= CLEAR BUTTON ================= */
.iam-dropdown-clear {
    position: absolute;
    right: 28px; /* kasih jarak dari arrow */
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #888;
    cursor: pointer;
    z-index: 3; /* 🔥 di atas arrow */
    line-height: 1;
}

    .iam-dropdown-clear:hover {
        color: #000;
    }


/* ================= ARROW ================= */
.iam-dropdown-control::after {
    content: "▼";
    position: absolute;
    right: 8px; /* lebih ke kanan */
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6b7280;
    pointer-events: none;
    z-index: 1; /* 🔥 di bawah clear */
}

/* ================= PANEL ================= */

.iam-dropdown-panel[style] {
    position: fixed !important;
    /* 🔥 penting */
    min-width: 200px;
    top: auto;
    left: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    z-index: 999999 !important;
    max-height: 260px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ================= LIST ================= */
.iam-dropdown-list {
    max-height: 200px;
    overflow-y: auto;
}

/* ================= ITEM ================= */
.iam-dropdown-item {
    padding: 10px;
    cursor: pointer;
    transition: 0.2s;
}

    .iam-dropdown-item:hover {
        background: #f3f4f6;
    }

/* ================= SEARCH ================= */
.iam-dropdown-search {
    width: 100%;
    padding: 8px;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
}

/* ================= FIX KHUSUS (INI PENTING BANGET) ================= */

/* 🔥 kalau parent punya overflow */
.iam-dropdown-panel {
    position: absolute;
}

/* 🔥 cegah ketutup container */
.iam-dropdown {
    overflow: visible !important;
}

/* 🔥 jika parent ada transform */
body {
    transform: none !important;
}
/* ===============================
   CHART
================================= */
.iamchart-container {
    position: relative;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: 0.3s;
}

    .iamchart-container canvas {
        width: 100% !important;
        height: 100% !important; /* 🔥 penting */
    }

    .iamchart-container:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    }



/* Dark mode ready */
.iamchart-dark {
    background: #1f2937;
}

    .iamchart-dark canvas {
        filter: brightness(0.9);
    }

/* ===============================
   INPUT
================================= */



.iaminput-form-label {
    font-weight: 600;
    padding-bottom: 5px;
    display: flex;
    width: 100%;
    gap: 6px;
    align-items: center;
}

.iaminput-form-tooltip {
    cursor: pointer;
    font-size: 12px;
    color: #888;
}

.iaminput-form-error {
    color: red;
    font-size: 12px;
}

.iaminput-form-input {
    margin-top: 1px;
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    min-height: 40px;
    border: 1px solid #ccc;
}

textarea {
    min-height: 40px;
}

.iaminput-form-required {
    color: #ef4444;
    font-weight: 700;
    margin-right: 4px;
    font-size: 14px;
}

/*============================*/
/*BAGDE*/
/*===========================*/

.iambadge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

/* SUCCESS (TRUE) */
.iambadge-success {
    background-color: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
}

/* DANGER (FALSE) */
.iambadge-danger {
    background-color: #fdecea;
    color: #c82333;
    border: 1px solid #f5c6cb;
}

/* HOVER EFFECT */
.iambadge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/*===================*/
/*POPUP MENU*/
/*===================*/
.iam-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    background: transparent; /* tidak terlihat */
}

.iam-popup-wrapper {
    position: fixed;
    z-index: 99999;
}

.iam-popup-menu {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 160px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    overflow: hidden;
}

.iam-popup-item {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

    .iam-popup-item:hover {
        background: #f3f4f6;
    }

.iam-login-side {
    position: relative;
    overflow: hidden;
}

/* =========================================
   CUSTOM MODERN SCROLLBAR
========================================= */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient( 180deg, #94a3b8, #64748b );
    border-radius: 999px;
    border: 3px solid #f1f5f9;
    transition: .2s;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient( 180deg, #64748b, #475569 );
    }

::-webkit-scrollbar-corner {
    background: #f1f5f9;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #64748b #f1f5f9;
}


/* TAGLINE */
.iam-login-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.iam-login-wrapper {
    height: 100vh;
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
}


.iam-login-card {
    width: 420px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
    animation: fadeIn 0.5s ease-in-out;
}

.iam-login-card-left {
    display: flex;
    gap: 20px;
    width: 800px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
    animation: fadeIn 0.5s ease-in-out;
}

    .iam-login-card-left .column {
        flex: 1;
        min-width: 250px;
        padding: 15px;
    }

    .iam-login-card-left.left {
        max-width: 300px !important;
    }

    .iam-login-card-left.right {
        gap: 30px;
    }

    .iam-login-card-left .iam-login-logo {
        align-content: center;
        align-items: center;
        width: 190px;
        margin-top: 50px;
    }

.iam-login-header {
    text-align: center;
    margin-bottom: 25px;
}

.iam-login-logo {
    width: 190px;
}

.iam-login-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #1e3c72;
}

.iam-login-header p {
    font-size: 13px;
    color: #666;
}

.iam-login-form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

    .iam-login-form-group label {
        margin-bottom: 6px;
        font-size: 14px;
        color: #444;
    }

.iam-login-form-control {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: 0.3s;
    font-size: 14px;
}

    .iam-login-form-control:focus {
        border-color: #2a5298;
        outline: none;
        box-shadow: 0 0 0 2px rgba(42,82,152,0.2);
    }

.iam-login-remember {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.iam-login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .iam-login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

.iam-login-input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: 0.2s;
}

    .iam-login-input:focus {
        border-color: #4f46e5;
        outline: none;
    }

.iam-login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: #888;
}

.iam-login-powered {
    font-size: 12px;
    color: #555;
}

    .iam-login-powered a {
        text-decoration: none !important;
    }

.iam-login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    gap: 80px;
}

    .iam-login-links a {
        color: #2563eb;
        text-decoration: none;
    }

.iam-form-login-group {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
    min-width: 250px !important;
}
.iam-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .iam-password-wrapper .iam-login-input {
        width: 100%;
        padding-right: 45px;
    }

.password-toggle {
    position: absolute;
    right: 5px;
    top: 22px;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: end;
    z-index: 2;
}
/* Edge / IE */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Chrome / Safari */
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}

/* Optional */
input[type="password"] {
    appearance: none;
    -webkit-appearance: none;
}
.iam-form-login-child{
    margin-bottom:10px;
}
.iam-forgot-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.iam-forgot-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    animation: iamPopup .2s ease;
}

.iam-forgot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .iam-forgot-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
    }

.iam-forgot-close {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.iam-login-btn-secondary {
    background: #f3f4f6;
    color: #111827;
    margin-top: 10px;
}

@keyframes iamPopup {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .iam-login-left {
        max-width: 660px !important;
    }

    .iam-login-card-left {
        max-width: 660px !important;
    }

    .iam-login-left .column {
        flex: 100%;
        width: 300px;
    }

    .iam-login-logo {
        position: relative;
        z-index: 2;
        text-align: center;
        animation: fadeIn 0.8s ease;
        padding: 20px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        height: 170px !important;
    }

        .iam-login-logo img {
            max-width: 130px;
            margin-bottom: 15px;
            filter: brightness(0) invert(1);
            filter: brightness(0) invert(1) drop-shadow(0 10px 25px rgba(0,0,0,0.3));
        }

    .iam-login-card {
        width: 100%;
    }

    .iam-form-login-group {
        display: flex;
        flex-direction: column;
        gap: 20px !important;
        min-width: 250px !important;
    }
}
/* =========================
   IAM SINGLE GRID ROOT
========================= */
.iam-singlegrid {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    /* =========================
   HEADER
========================= */
    .iam-singlegrid .iam-singlegrid-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .iam-singlegrid .iam-singlegrid-title {
        font-weight: 600;
        font-size: 16px;
    }

    /* =========================
   BUTTON
========================= */
    .iam-singlegrid .iam-singlegrid-btn-edit {
        background: #4f46e5;
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.2s;
    }

        .iam-singlegrid .iam-singlegrid-btn-edit:hover {
            background: #4338ca;
        }

    /* =========================
   TABLE
========================= */
    .iam-singlegrid .iam-singlegrid-table {
        width: 100%;
        border-collapse: collapse;
    }

        .iam-singlegrid .iam-singlegrid-table th {
            text-align: left;
            background: #f1f5f9;
            padding: 10px;
            font-size: 13px;
            color: #374151;
        }

        .iam-singlegrid .iam-singlegrid-table td {
            padding: 10px;
            border-bottom: 1px solid #e5e7eb;
            font-size: 13px;
        }

    /* =========================
   INPUT & SELECT
========================= */
    .iam-singlegrid .iam-singlegrid-input,
    .iam-singlegrid .iam-singlegrid-select {
        width: 100%;
        padding: 6px 8px;
        border-radius: 6px;
        border: 1px solid #d1d5db;
        font-size: 13px;
    }

        .iam-singlegrid .iam-singlegrid-input:focus,
        .iam-singlegrid .iam-singlegrid-select:focus {
            outline: none;
            border-color: #4f46e5;
        }

    /* =========================
   CHECKBOX
========================= */
    .iam-singlegrid .iam-singlegrid-checkbox {
        transform: scale(1.2);
        cursor: pointer;
    }

.iamtab-control {
    font-family: Arial,sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.iamtab-headers {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ccc;
    background: #f7f7f7;
}

    .iamtab-headers li {
        padding: 10px 20px;
        cursor: pointer;
        border-right: 1px solid #ccc;
    }

        .iamtab-headers li:last-child {
            border-right: none;
        }

        .iamtab-headers li.active {
            background: #fff;
            font-weight: bold;
            border-bottom: 2px solid #4f46e5;
        }

        .iamtab-headers li:hover {
            background: #e2e2e2;
        }

.iamtab-content {
    padding: 15px;
    background: #fff;
    
    height:80vh;
    overflow:auto;
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 10px;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.5;
    font-family: Consolas, monospace;
}
/* =========================================================
   FLY OUT HEADER STYLE
========================================================= */

.iamtab-flyout .iamtab-headers {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 0;
    border-bottom: 1px solid #dcdfe4;
    overflow-x: auto;
}

    .iamtab-flyout .iamtab-headers li {
        position: relative;
        padding: 10px 18px;
        border-radius: 14px;
        font-weight: 500;
        color: #4b5563;
        white-space: nowrap;
        transition: all .25s ease;
        cursor: pointer;
    }

        /* Hover */
        .iamtab-flyout .iamtab-headers li:hover {
            background: #ebeef3;
            color: #111827;
        }

        /* Active */
        .iamtab-flyout .iamtab-headers li.active {
            background: linear-gradient(135deg,#6d5dfc,#5b47ea);
            color: white;
            font-weight: 600;
            box-shadow: 0 3px 10px rgba(91,71,234,.35), inset 0 0 0 1px rgba(255,255,255,.15);
            border: 2px solid #2f1f8f;
        }

            /* Flyout effect */
            .iamtab-flyout .iamtab-headers li.active::before {
                content: '';
                position: absolute;
                inset: -2px;
                border-radius: 16px;
                background: rgba(109,93,252,.12);
                z-index: -1;
                filter: blur(6px);
            }
/* =========================================================
   NORMAL
========================================================= */

.iamtab-normal .iamtab-headers {
    border-bottom: 1px solid #e5e7eb;
}

    .iamtab-normal .iamtab-headers li {
        padding: 12px 18px;
        border-radius: 10px 10px 0 0;
        color: #6b7280;
        font-weight: 600;
    }

        .iamtab-normal .iamtab-headers li.active {
            background: #ffffff;
            color: #111827;
            border: 1px solid #e5e7eb;
            border-bottom: 1px solid white;
        }

/* =========================================================
   FAQ STYLE
========================================================= */

.iamtab-faq .iamtab-headers {
    flex-direction: column;
    gap: 10px;
}

    .iamtab-faq .iamtab-headers li {
        width: 100%;
        padding: 16px 18px;
        border-radius: 14px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        font-weight: 600;
    }

        .iamtab-faq .iamtab-headers li:hover {
            background: #f3f4f6;
        }

        .iamtab-faq .iamtab-headers li.active {
            background: #111827;
            color: white;
        }

/* =========================================================
   FLAT HEADER
========================================================= */

.iamtab-flat .iamtab-headers {
    background: #f3f4f6;
    padding: 8px;
    border-radius: 14px;
    width: fit-content;
}

    .iamtab-flat .iamtab-headers li {
        padding: 10px 18px;
        border-radius: 10px;
        font-weight: 600;
        color: #6b7280;
    }

        .iamtab-flat .iamtab-headers li.active {
            background: white;
            color: #111827;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

/* ================= IAM CARD ================= */
.iam-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

    .iam-card:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

.iam-card-clickable {
    cursor: pointer;
}

    .iam-card-clickable:hover {
        transform: translateY(-3px);
    }

/* 🔥 BODY FLEX */
.iam-card-body {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* 🔥 ICON */
.iam-card-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

/* MAIN CONTENT */
.iam-card-main {
    flex: 1;
}

/* sections */
.iam-card-header {
    margin-bottom: 6px;
}

.iam-card-title {
    font-size: 18px;
    font-weight: 600;
}

.iam-card-content {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.iam-card-footer {
    border-top: 1px solid #eee;
    padding-top: 8px;
    text-align: right;
}

/* ================= CARD COLOR ================= */
.card-primary {
    background: #2563eb;
    color: #fff;
}

.card-secondary {
    background: #6b7280;
    color: #fff;
}

.card-warning {
    background: #f59e0b;
    color: #fff;
}

.card-danger {
    background: #dc2626;
    color: #fff;
}

/* ===== TAMBAHAN ===== */

.card-success {
    background: #16a34a;
    color: #fff;
}

.card-info {
    background: #0ea5e9;
    color: #fff;
}

.card-dark {
    background: #111827;
    color: #fff;
}

.card-purple {
    background: #7c3aed;
    color: #fff;
}

.card-pink {
    background: #ec4899;
    color: #fff;
}

.card-primary .iam-card-footer,
.card-success .iam-card-footer,
.card-warning .iam-card-footer,
.card-danger .iam-card-footer,
.card-secondary .iam-card-footer,
.card-info .iam-card-footer,
.card-dark .iam-card-footer,
.card-purple .iam-card-footer,
.card-pink .iam-card-footer{
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* =========================
   IAM BADGE BASE
========================= */
.iam-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
}

    /* OPTIONAL ICON */
    .iam-badge i {
        font-size: 11px;
    }

/* =========================
   COLOR VARIANTS
========================= */

/* PRIMARY */
.iam-badge-primary {
    background: #e0f2fe;
    color: #0369a1;
}

/* SUCCESS */
.iam-badge-success {
    background: #dcfce7;
    color: #15803d;
}

/* DANGER */
.iam-badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* WARNING */
.iam-badge-warning {
    background: #fef9c3;
    color: #a16207;
}

/* INFO */
.iam-badge-info {
    background: #e0f2fe;
    color: #0284c7;
}

/* SECONDARY */
.iam-badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

/* DARK */
.iam-badge-dark {
    background: #1e293b;
    color: #f8fafc;
}

/* LIGHT */
.iam-badge-light {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* =========================
   OUTLINE VARIANT
========================= */
.iam-badge-outline-primary {
    background: transparent;
    color: #0369a1;
    border: 1px solid #0369a1;
}

.iam-badge-outline-success {
    background: transparent;
    color: #15803d;
    border: 1px solid #15803d;
}

.iam-badge-outline-danger {
    background: transparent;
    color: #b91c1c;
    border: 1px solid #b91c1c;
}

/* =========================
   SOFT HOVER EFFECT
========================= */
.iam-badge:hover {
    filter: brightness(0.95);
    cursor: default;
}

/* =========================
   SIZE VARIANTS
========================= */
.iam-badge-sm {
    font-size: 11px;
    padding: 3px 8px;
}

.iam-badge-lg {
    font-size: 13px;
    padding: 6px 14px;
}

/*----------- Richtext Box*/

.iam-rte-wrapper {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.iam-rte-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #f8f9fa;
    border-bottom: 1px solid #dcdcdc;
}

.iam-rte-btn {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s ease;
}

    .iam-rte-btn:hover {
        background: #e9ecef;
        border-color: #ced4da;
    }

    .iam-rte-btn i {
        font-size: 14px;
    }

.iam-rte-btn-html {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #ced4da;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

    .iam-rte-btn-html:hover {
        background: #e9ecef;
    }

.iam-rte-select {
    height: 34px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0 8px;
    background: white;
}

.iam-rte-separator {
    width: 1px;
    height: 24px;
    background: #dcdcdc;
    margin: 0 4px;
}

.iam-rte-editor {
    min-height: 400px;
    padding: 16px;
    outline: none;
    overflow-y: auto;
    font-family: Segoe UI, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

    .iam-rte-editor:focus {
        background: #fff;
    }

    .iam-rte-editor p {
        margin-bottom: 12px;
    }

    .iam-rte-editor h1,
    .iam-rte-editor h2,
    .iam-rte-editor h3 {
        margin-top: 16px;
        margin-bottom: 10px;
    }

    .iam-rte-editor img {
        max-width: 100%;
        height: auto;
    }

.iam-rte-fontsize {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 0 6px;
}

.iam-rte-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}
.iam-rte-table-wrapper {
    position: relative;
}

.iam-table-picker {
    position: absolute;
    top: 38px;
    left: 0;
    width: 260px;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    padding: 12px;
    z-index: 9999;
}

.iam-table-size {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.iam-table-grid {
    display: grid;
    grid-template-columns: repeat(10, 20px);
    gap: 3px;
}

.iam-table-cell {
    width: 20px;
    height: 20px;
    border: 1px solid #d0d0d0;
    cursor: pointer;
}

    .iam-table-cell.active {
        background: #4f8df7;
        border-color: #4f8df7;
    }
.iam-rte-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

    .iam-rte-editor table td,
    .iam-rte-editor table th {
        border: 1px solid #dcdcdc;
        padding: 8px;
    }

    .iam-rte-editor table tr:nth-child(even) {
        background: #fafafa;
    }
.iam-rte-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.iam-rte-image-dialog {
    width: 500px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.iam-rte-dialog-header {
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iam-rte-dialog-body {
    padding: 15px;
}

.iam-rte-dialog-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.iam-rte-image-preview {
    margin-top: 15px;
    text-align: center;
}

    .iam-rte-image-preview img {
        max-width: 100%;
        max-height: 250px;
        border-radius: 4px;
    }

.iam-rte-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    box-sizing: border-box;
}

    .iam-rte-input:focus {
        outline: none;
        border-color: #0d6efd;
    }

.iam-rte-url-section {
    margin-top: 15px;
}

    .iam-rte-url-section label {
        display: block;
        margin-bottom: 5px;
        font-size: 13px;
        font-weight: 500;
        color: #444;
    }

.iam-rte-close-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

    .iam-rte-close-btn:hover {
        color: #000;
    }

.iam-rte-btn-primary {
    padding: 8px 16px;
    border: none;
    background: #0d6efd;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

    .iam-rte-btn-primary:hover {
        background: #0b5ed7;
    }

.iam-rte-btn-secondary {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

    .iam-rte-btn-secondary:hover {
        background: #f5f5f5;
    }
.iam-rte-upload-area {
    border: 2px dashed #c5ced8;
    border-radius: 6px;
    padding: 35px;
    text-align: center;
    margin-bottom: 15px;
}

.iam-rte-browse-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

    .iam-rte-browse-btn:hover {
        background: #5b636a;
    }

.iam-rte-upload-text {
    margin-top: 12px;
    color: #8a8a8a;
    font-size: 14px;
}
.iam-rte-dropdown {
    position: relative;
}

.iam-rte-popup {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 9999;
}

.iam-rte-popup-item {
    padding: 8px 12px;
    cursor: pointer;
}

    .iam-rte-popup-item:hover {
        background: #f5f5f5;
    }

.iam-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.iam-modal {
    width: 420px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.iam-modal-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.iam-modal-body {
    padding: 15px;
}

.iam-modal-footer {
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.drop-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
}

.drop-box {
    margin-bottom: 10px;
    color: #777;
}

.iam-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}
.iam-textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
}

.btn-secondary {
    background: #ddd;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
}

.close {
    border: none;
    background: transparent;
    font-size: 16px;
}
.sep {
    width: 1px;
    background: #ddd;
    margin: 0 5px;
}

.iam-rte-editor {
    padding: 12px;
    outline: none;
    overflow-y: auto;
}

.iam-rte-source {
    width: 100%;
    border: none;
    padding: 12px;
    font-family: monospace;
}

.iam-rte-toolbar button.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* iam-dashboard.css */

.iam-dashboard {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #f5f7fb;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   SIDEBAR
========================= */

.iam-dashboard-sidebar {
    width: 260px;
    background: #1f2937;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

    .iam-dashboard-sidebar.collapsed {
        width: 0px !important;
    }

.iam-dashboard-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px;
}

    .iam-dashboard-logo.collapsed {
        display: none;
    }

    .iam-dashboard-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.iam-dashboard-menu {
    flex: 1;
    overflow-y: hidden;
    padding: 10px;
}
    .iam-dashboard-menu:hover {
        overflow-y: auto;
    }
/* =========================
   MENU
========================= */

.iam-dashboard-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 14px;
    margin-bottom: 4px;
}

    .iam-dashboard-menu-item:hover {
        background: rgba(255,255,255,0.08);
    }

    .iam-dashboard-menu-item i {
        width: 20px;
        text-align: center;
        font-size: 15px;
    }

.iam-dashboard-arrow {
    margin-left: auto;
    font-size: 24px;
}

/* LEVEL */

.iam-dashboard-menu-level-1 .iam-dashboard-menu-item {
    padding-left: 14px;
}

.iam-dashboard-menu-level-2 .iam-dashboard-menu-item {
    padding-left: 34px;
    font-size: 13px;
}

.iam-dashboard-menu-level-3 .iam-dashboard-menu-item {
    padding-left: 54px;
    font-size: 12px;
}

/* =========================
   MAIN
========================= */

.iam-dashboard-main {
    flex: 1;
    margin-left: 260px;
    overflow: hidden;
}

/* =========================
   TOPBAR
========================= */

.iam-dashboard-topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 90px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
}

.iam-dashboard-toggle {
    width: 42px;
    height: 42px;
    border: none;
    background: #f3f4f6;
    border-radius: 10px;
    cursor: pointer;
    display: none;
}

/* =========================
   USER AREA
========================= */

.iam-dashboard-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.iam-dashboard-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.iam-dashboard-avatar-wrapper {
    position: relative;
}

.iam-dashboard-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #374151;
    user-select: none;
    border: 2px solid #f3f4f6;
}

    .iam-dashboard-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.iam-dashboard-avatar-menu {
    position: absolute;
    top: 52px;
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 2000;
}

.iam-dashboard-avatar-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

    .iam-dashboard-avatar-menu-item:hover {
        background: #f9fafb;
    }

/* =========================
   CONTENT
========================= */

.iam-dashboard-content {
    margin-top: 80px;
    margin-left: 20px;
    height: calc(100vh - 70px);
    overflow-y: hidden;
    padding: 20px;
}

/* =========================
   OVERLAY
========================= */

.iam-dashboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .iam-dashboard-sidebar {
        left: 0px;
    }

        .iam-dashboard-sidebar.collapsed {
            left: -260px !important;
        }
  
    .iam-dashboard-main {
        margin-left: 0;
    }

    .iam-dashboard-topbar {
        left: 0;
    }

    .iam-dashboard-toggle {
        display: block;
    }

    
}
/* ========================================
   THEME : DARK
======================================== */

.iam-dashboard-theme-dark .iam-dashboard-sidebar {
    background: #1f2937;
}

.iam-dashboard-theme-dark .iam-dashboard-menu-item:hover {
    background: rgba(255,255,255,0.08);
}

.iam-dashboard-theme-dark .iam-dashboard-topbar {
    background: #ffffff;
}

/* ========================================
   THEME : BLUE
======================================== */

.iam-dashboard-theme-blue .iam-dashboard-sidebar {
    background: linear-gradient(180deg, #1e3a8a, #2563eb);
}

.iam-dashboard-theme-blue .iam-dashboard-menu-item:hover {
    background: rgba(255,255,255,0.15);
}

.iam-dashboard-theme-blue .iam-dashboard-topbar {
    background: #ffffff;
}

/* ========================================
   THEME : GREEN
======================================== */

.iam-dashboard-theme-green .iam-dashboard-sidebar {
    background: linear-gradient(180deg, #065f46, #10b981);
}

.iam-dashboard-theme-green .iam-dashboard-menu-item:hover {
    background: rgba(255,255,255,0.15);
}

.iam-dashboard-theme-green .iam-dashboard-topbar {
    background: #ffffff;
}
/* ========================================
   THEME : BlueBlack
======================================== */

.iam-dashboard-theme-blueblack .iam-dashboard-sidebar {
    background: linear-gradient(135deg, rgb(30, 60, 114), rgb(42, 82, 152)) !important;
}

.iam-dashboard-theme-blueblack .iam-dashboard-menu-item:hover {
    background: rgba(255,255,255,0.15);
}

.iam-dashboard-theme-blueblack .iam-dashboard-topbar {
    background: #3B3B3D;
}

.iam-dashboard-theme-blueblack .iam-dashboard-topbar-logo {
    background: #3B3B3D !important;
    border-right: none !important;
}

.iam-dashboard-theme-blueblack .iam-dashboard-user-name {
    color: white;
}

.iam-dashboard-theme-blueblack .iam-dashboard-avatar {
    color: white;
}
/* =========================================================
   DISPLAY : FULL TOP BAR
========================================================= */
.iam-dashboard-display-fulltopbar .iam-dashboard-topbar {
    left: 0;
    width: 100%;
    padding: 0 20px 0 0;
}

.iam-dashboard-display-fulltopbar .iam-dashboard-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LOGO DI TOPBAR */

.iam-dashboard-display-fulltopbar .iam-dashboard-topbar-logo {
    width: 260px;
    min-width: 260px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

    .iam-dashboard-display-fulltopbar .iam-dashboard-topbar-logo img {
        max-width: 100%;
        max-height: 50px;
        object-fit: contain;
    }

/* SIDEBAR */

.iam-dashboard-display-fulltopbar .iam-dashboard-sidebar {
    top: 90px;
    height: calc(100vh - 70px);
    width: 280px !important;
}

    .iam-dashboard-display-fulltopbar .iam-dashboard-sidebar .iam-dashboard-logo {
        display: none;
    }

/* MAIN */

.iam-dashboard-display-fulltopbar .iam-dashboard-main {
    margin-left: 260px;
}

/* CONTENT */

.iam-dashboard-display-fulltopbar .iam-dashboard-content {
    margin-top: 80px;
    margin-left: 20px;
}

/* MOBILE */

@media (max-width: 768px) {

    .iam-dashboard-display-fulltopbar .iam-dashboard-sidebar {
        left: 0px;
    }

        .iam-dashboard-display-fulltopbar .iam-dashboard-sidebar.open {
            left: 0;
        }

    .iam-dashboard-display-fulltopbar .iam-dashboard-main {
        margin-left: 0;
    }

    .iam-dashboard-display-fulltopbar .iam-dashboard-topbar-logo {
        width: auto;
        min-width: auto;
        padding: 0 15px;
        border-right: none;
    }
}


/* =========================================================
   DISPLAY : TOP MENU
========================================================= */

.iam-dashboard-display-topmenu {
    flex-direction: column;
}

    /* TOPBAR */

    .iam-dashboard-display-topmenu .iam-dashboard-topbar {
        left: 0;
        height: 70px;
    }

    /* =========================================================
   HORIZONTAL MENU
========================================================= */

    .iam-dashboard-display-topmenu .iam-dashboard-sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        height: 64px;
        min-height: 64px;
        background: white;
        border-bottom: 1px solid #e5e7eb;
        z-index: 998;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        color: black;
    }

        /* HIDE LOGO */

        .iam-dashboard-display-topmenu .iam-dashboard-sidebar .iam-dashboard-logo {
            display: none;
        }

    /* =========================================================
   MENU CONTAINER
========================================================= */

    .iam-dashboard-display-topmenu .iam-dashboard-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 100%;
        overflow: visible;
        position: relative;
    }

    /* =========================================================
   LEVEL 1
========================================================= */

    .iam-dashboard-display-topmenu .iam-dashboard-menu-level-1 {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    /* =========================================================
   MENU ITEM
========================================================= */

    .iam-dashboard-display-topmenu .iam-dashboard-menu-item {
        white-space: nowrap;
        margin-bottom: 0;
        height: 44px;
        display: flex;
        align-items: center;
        border-radius: 10px;
    }

        /* HOVER */

        .iam-dashboard-display-topmenu .iam-dashboard-menu-item:hover {
            background: #f3f4f6;
        }

    /* =========================================================
   SUB MENU
========================================================= */

    .iam-dashboard-display-topmenu .iam-dashboard-submenu {
        position: absolute;
        top: 60px;
        left: 0;
        min-width: 240px;
        background: white;
        border-radius: 14px;
        padding: 10px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        z-index: 99999;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    /* LEVEL 2 */

    .iam-dashboard-display-topmenu .iam-dashboard-menu-level-2 {
        position: relative;
    }

        /* LEVEL 3 */

        .iam-dashboard-display-topmenu .iam-dashboard-menu-level-2 .iam-dashboard-submenu {
            top: 0;
            left: calc(100% + 10px);
        }

    /* =========================================================
   MAIN
========================================================= */

    .iam-dashboard-display-topmenu .iam-dashboard-main {
        margin-left: 0;
        margin-top: 134px;
        width: 100%;
    }

    /* =========================================================
   CONTENT
========================================================= */

    .iam-dashboard-display-topmenu .iam-dashboard-content {
        margin-top: 0;
        height: calc(100vh - 134px);
    }

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .iam-dashboard-display-topmenu .iam-dashboard-sidebar {
        left: -280px;
        width: 280px;
        height: calc(100vh - 70px);
        top: 70px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
    }

        .iam-dashboard-display-topmenu .iam-dashboard-sidebar.open {
            left: 0;
        }

    .iam-dashboard-display-topmenu .iam-dashboard-menu {
        display: block;
        height: auto;
        overflow: visible;
        padding: 10px;
    }

    .iam-dashboard-display-topmenu .iam-dashboard-menu-level-1 {
        display: block;
        height: auto;
    }

    .iam-dashboard-display-topmenu .iam-dashboard-submenu {
        position: relative;
        top: unset;
        left: unset;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
        border-radius: 10px;
    }
    
    .iam-dashboard-display-topmenu .iam-dashboard-menu-level-2 .iam-dashboard-submenu {
        left: unset;
    }

    .iam-dashboard-display-topmenu .iam-dashboard-main {
        margin-top: 80px;
        margin-left: 20px;
    }

    .iam-dashboard-display-topmenu .iam-dashboard-content {
        height: calc(100vh - 70px);
    }

    .iam-dashboard-display-topmenu .iam-dashboard-sidebar {
        left: -280px;
        width: 280px;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
    }

        .iam-dashboard-display-topmenu .iam-dashboard-sidebar.open {
            left: 0;
        }

    .iam-dashboard-display-topmenu .iam-dashboard-logo {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .iam-dashboard-display-topmenu .iam-dashboard-menu {
        display: block;
        height: auto;
        overflow: visible;
        padding: 10px;
    }

    .iam-dashboard-display-topmenu .iam-dashboard-main {
        margin-top: 80px;
        margin-left: 20px;
    }

    .iam-dashboard-display-topmenu .iam-dashboard-content {
        height: calc(100vh - 70px);
    }
}
/* =========================================================
   COLLAPSE SIDEBAR
========================================================= */

.iam-dashboard-logo img {
    cursor: pointer;
}


/* LOGO */

.iam-dashboard-collapsed .iam-dashboard-logo {
    padding: 10px;
}

/* MAIN */

.iam-dashboard-collapsed .iam-dashboard-main {
    margin-left: -20px;
}

/* TOPBAR */

.iam-dashboard-collapsed .iam-dashboard-topbar {
    left: 0px;
}

/* HIDE TEXT */

.iam-dashboard-collapsed .iam-dashboard-menu-item span,
.iam-dashboard-collapsed .iam-dashboard-arrow {
    display: none;
}

/* CENTER ICON */

.iam-dashboard-collapsed .iam-dashboard-menu-item {
    justify-content: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

    /* ICON */

    .iam-dashboard-collapsed .iam-dashboard-menu-item i {
        margin: 0;
        width: auto;
        font-size: 18px;
    }

/* SUBMENU */

.iam-dashboard-collapsed .iam-dashboard-submenu {
    position: absolute;
    left: 78px;
    top: 0;
    min-width: 240px;
    background: white;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 9999;
}

/* LEVEL */

.iam-dashboard-collapsed .iam-dashboard-menu-level-1 {
    position: relative;
}

/* FULL TOPBAR */

.iam-dashboard-display-fulltopbar.iam-dashboard-collapsed .iam-dashboard-main {
    margin-left: -20px;
}

.iam-dashboard-display-fulltopbar.iam-dashboard-collapsed .iam-dashboard-sidebar {
    width: 0px !important;
}

@media (max-width: 768px) {



    .iam-dashboard-collapsed .iam-dashboard-main {
        margin-left: 0;
    }

    .iam-dashboard-collapsed .iam-dashboard-topbar {
        left: 0;
    }

    .iam-dashboard-collapsed .iam-dashboard-menu-item span,
    .iam-dashboard-collapsed .iam-dashboard-arrow {
        display: block;
    }
}

/* =========================================================
   PROFESSIONAL MODE
========================================================= */

.iam-dashboard-display-professional {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8fafc;
}

    /* =========================================================
   MAIN
========================================================= */

    .iam-dashboard-display-professional .iam-dashboard-main {
        width: 100%;
        margin-left: 0 !important;
    }

    .iam-dashboard-display-professional .iam-dashboard-content {
        margin: 0 !important;
        padding: 0;
        min-height: calc(100vh - 72px);
        box-sizing: border-box;
    }

    /* =========================================================
   TOPBAR
========================================================= */

    .iam-dashboard-display-professional .iam-dashboard-topbar {
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 32px;
        position: sticky;
        top: 0;
        z-index: 999;
        backdrop-filter: blur(16px);
        transition: all .2s ease;
    }

/* =========================================================
   THEME : DARK
========================================================= */

.iam-dashboard-theme-dark.iam-dashboard-display-professional
.iam-dashboard-topbar {
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid #e5e7eb;
}

/* =========================================================
   THEME : BLUE
========================================================= */

.iam-dashboard-theme-blue.iam-dashboard-display-professional
.iam-dashboard-topbar {
    background: rgba(239,246,255,.90);
    border-bottom: 1px solid #bfdbfe;
}

/* =========================================================
   THEME : GREEN
========================================================= */

.iam-dashboard-theme-green.iam-dashboard-display-professional
.iam-dashboard-topbar {
    background: rgba(240,253,244,.90);
    border-bottom: 1px solid #bbf7d0;
}

/* =========================================================
   THEME : BLUE BLACK
========================================================= */

.iam-dashboard-theme-blueblack.iam-dashboard-display-professional {
    background: #0f172a;
}

    .iam-dashboard-theme-blueblack.iam-dashboard-display-professional
    .iam-dashboard-topbar {
        background: rgba(15,23,42,.92);
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

/* =========================================================
   LEFT
========================================================= */

.iam-dashboard-pro-left {
    display: flex;
    align-items: center;
    position: relative;
}

    .iam-dashboard-pro-left img {
        height: 48px;
        object-fit: contain;
        cursor: pointer;
    }
/* DESKTOP DEFAULT */

.iam-dashboard-logo-desktop {
    display: flex;
}

.iam-dashboard-logo-mobile {
    display: none;
}

/* DESKTOP IMAGE */

.iam-dashboard-logo-desktop img {
    cursor: pointer;
}

/* =========================================================
   CENTER MENU
========================================================= */

.iam-dashboard-pro-center {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .iam-dashboard-pro-center.center {
        justify-content: center;
        flex: 1;
    }

    .iam-dashboard-pro-center.right {
        justify-content: flex-end;
        flex: 1;
        padding-right: 20px;
    }

/* =========================================================
   TOP MENU ITEM
========================================================= */

.iam-dashboard-pro-menu-item {
    position: relative;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all .18s ease;
}

/* LIGHT */

.iam-dashboard-theme-dark
.iam-dashboard-pro-menu-item,
.iam-dashboard-theme-blue
.iam-dashboard-pro-menu-item,
.iam-dashboard-theme-green
.iam-dashboard-pro-menu-item {
    color: #475569;
}

/* DARK */

.iam-dashboard-theme-blueblack
.iam-dashboard-pro-menu-item {
    color: #e2e8f0;
}

/* HOVER */

.iam-dashboard-theme-dark
.iam-dashboard-pro-menu-item:hover,
.iam-dashboard-theme-blue
.iam-dashboard-pro-menu-item:hover,
.iam-dashboard-theme-green
.iam-dashboard-pro-menu-item:hover {
    color: #2563eb;
}

.iam-dashboard-theme-blueblack
.iam-dashboard-pro-menu-item:hover {
    color: #60a5fa;
}

/* UNDERLINE */

.iam-dashboard-pro-menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    transition: .2s ease;
}

/* LIGHT */

.iam-dashboard-theme-dark
.iam-dashboard-pro-menu-item::after,
.iam-dashboard-theme-blue
.iam-dashboard-pro-menu-item::after,
.iam-dashboard-theme-green
.iam-dashboard-pro-menu-item::after {
    background: #2563eb;
}

/* DARK */

.iam-dashboard-theme-blueblack
.iam-dashboard-pro-menu-item::after {
    background: #60a5fa;
}

.iam-dashboard-pro-menu-item:hover::after {
    width: 100%;
}

/* =========================================================
   RIGHT
========================================================= */

.iam-dashboard-pro-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* =========================================================
   BUTTON
========================================================= */

.iam-dashboard-pro-button {
    border: none;
    outline: none;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
}

/* LIGHT */

.iam-dashboard-theme-dark
.iam-dashboard-pro-button,
.iam-dashboard-theme-blue
.iam-dashboard-pro-button,
.iam-dashboard-theme-green
.iam-dashboard-pro-button {
    background: #2563eb;
    color: white;
}

/* DARK */

.iam-dashboard-theme-blueblack
.iam-dashboard-pro-button {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,.08);
}

.iam-dashboard-pro-button:hover {
    transform: translateY(-1px);
}

/* =========================================================
   DROPDOWN MENU
========================================================= */

.pro-menu-wrapper {
    position: relative;
}

/* DROPDOWN */

.pro-menu-dropdown {
    position: absolute;
    top: 72px;
    left: 0;
    width: 290px;
    border-radius: 18px;
    overflow: hidden;
    z-index: 9999;
    animation: proMenuFade .18s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.05);
}

/* =========================================================
   DROPDOWN THEME
========================================================= */

/* LIGHT */

.iam-dashboard-theme-dark
.pro-menu-dropdown,
.iam-dashboard-theme-blue
.pro-menu-dropdown,
.iam-dashboard-theme-green
.pro-menu-dropdown {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.5);
}

/* DARK */

.iam-dashboard-theme-blueblack
.pro-menu-dropdown {
    background: rgba(15,23,42,.96);
    border: 1px solid rgba(255,255,255,.05);
}

/* =========================================================
   MENU LEVEL
========================================================= */

.pro-menu-dropdown .iam-dashboard-menu-level-1 {
    padding: 8px;
}

/* =========================================================
   DROPDOWN ITEM
========================================================= */

.iam-dashboard-display-professional
.pro-menu-dropdown
.iam-dashboard-menu-item {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px 0 14px;
    margin: 2px 6px;
    border-radius: 12px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all .16s ease;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   DROPDOWN ITEM COLOR
========================================================= */

/* LIGHT */

.iam-dashboard-theme-dark
.pro-menu-dropdown
.iam-dashboard-menu-item,
.iam-dashboard-theme-blue
.pro-menu-dropdown
.iam-dashboard-menu-item,
.iam-dashboard-theme-green
.pro-menu-dropdown
.iam-dashboard-menu-item {
    color: #334155;
}

/* DARK */

.iam-dashboard-theme-blueblack
.pro-menu-dropdown
.iam-dashboard-menu-item {
    color: #e2e8f0;
}

/* =========================================================
   DROPDOWN HOVER
========================================================= */

/* LIGHT */

.iam-dashboard-theme-dark
.pro-menu-dropdown
.iam-dashboard-menu-item:hover,
.iam-dashboard-theme-blue
.pro-menu-dropdown
.iam-dashboard-menu-item:hover,
.iam-dashboard-theme-green
.pro-menu-dropdown
.iam-dashboard-menu-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* DARK */

.iam-dashboard-theme-blueblack
.pro-menu-dropdown
.iam-dashboard-menu-item:hover {
    background: rgba(255,255,255,.06);
    color: #60a5fa;
}

/* =========================================================
   ICON
========================================================= */

.pro-menu-dropdown .iam-dashboard-menu-item i {
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    margin-right: 0;
}

/* =========================================================
   SUBMENU
========================================================= */

.pro-menu-dropdown .iam-dashboard-submenu {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px dashed rgba(148,163,184,.30);
}

/* =========================================================
   ARROW
========================================================= */

.pro-menu-dropdown .iam-dashboard-arrow {
    margin-left: auto;
    font-size: 11px;
    opacity: .7;
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes proMenuFade {

    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px) {

    .iam-dashboard-display-professional
    .iam-dashboard-topbar {
        padding: 0 18px;
    }

    .iam-dashboard-pro-center {
        display: none;
    }

    .iam-dashboard-pro-button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .pro-menu-dropdown {
        width: 250px;
        max-width: 90vw;
    }
    .iam-dashboard-logo-desktop {
        display: none;
    }

    .iam-dashboard-logo-mobile {
        display: flex;
        align-items: center;
    }

        .iam-dashboard-logo-mobile img {
            cursor: default;
        }
}

/* IAMChatWidget.razor.css */

.iam-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    pointer-events: none;
}

    .iam-chat-widget * {
        pointer-events: auto;
    }
/* FLOAT BUTTON */
.iam-chat-float {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 35px rgba(0,0,0,.25);
    position: relative;
    transition: .3s;
}

    .iam-chat-float:hover {
        transform: scale(1.05);
    }

    .iam-chat-float.hide {
        opacity: 0;
        pointer-events: none;
    }

.iam-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: red;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PANEL */
.iam-chat-panel {
    width: 380px;
    height: 650px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(20px) scale(.98);
    transform-origin: bottom right;
    pointer-events: none;
    transition: .25s;
}

    .iam-chat-panel.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

/* HEADER */
.iam-chat-header {
    padding: 18px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iam-chat-header-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.iam-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.iam-chat-title {
    font-size: 16px;
    font-weight: 600;
}

.iam-chat-status {
    font-size: 12px;
    opacity: .8;
}

.iam-chat-close {
    border: none;
    background: transparent;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* BODY */
.iam-chat-body {
    flex: 1;
    background: #f5f7fb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* WELCOME */
.iam-chat-welcome {
    padding: 24px;
}

.iam-chat-welcome-title {
    font-size: 24px;
    font-weight: bold;
}

.iam-chat-welcome-subtitle {
    margin-top: 5px;
    color: #666;
}

/* DEPARTMENT */
.iam-chat-department-list {
    padding: 0 20px 20px;
    overflow: auto;
}

.iam-chat-department-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
    display: flex;
    gap: 15px;
    align-items: center;
    cursor: pointer;
    transition: .25s;
    border: 1px solid #eee;
}

    .iam-chat-department-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0,0,0,.08);
    }

.iam-chat-department-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.iam-chat-department-name {
    font-weight: 600;
}

.iam-chat-department-desc {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

/* ROOM */
.iam-chat-room-header {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

/* MESSAGES */
.iam-chat-messages {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.iam-chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

    .iam-chat-message.mine {
        align-items: flex-end;
    }

    .iam-chat-message.other {
        align-items: flex-start;
    }

.iam-chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 5px 12px rgba(0,0,0,.05);
}

.iam-chat-message.mine .iam-chat-bubble {
    background: #2563eb;
    color: white;
}

.iam-chat-time {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

/* INPUT */
.iam-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.iam-chat-input {
    flex: 1;
    border: none;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 14px;
    outline: none;
}

.iam-chat-send {
    width: 50px;
    border: none;
    border-radius: 14px;
    background: #2563eb;
    color: white;
    cursor: pointer;
}

.iam-chat-form-container {
    padding: 24px;
}

.iam-chat-form-title {
    font-size: 22px;
    font-weight: 700;
}

.iam-chat-form-subtitle {
    color: #666;
    margin-top: 5px;
    margin-bottom: 25px;
}

.iam-chat-form-group {
    margin-bottom: 18px;
}

    .iam-chat-form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
    }

.iam-chat-form-input {
    width: 100%;
    border: none;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 14px;
    outline: none;
}

.iam-chat-start-btn {
    width: 100%;
    border: none;
    background: #2563eb;
    color: white;
    padding: 15px;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 10px;
}

.iam-chat-history-btn {
    border: none;
    background: #2563eb;
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
}

.iam-chat-sender {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 5px;
    opacity: .7;
}
/* MOBILE */
@media(max-width:600px) {

    .iam-chat-widget {
        right: 0;
        bottom: 0;
    }

    .iam-chat-panel {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}

.iam-admin-chat-layout {
    width: 100%;
    height: 85vh;
    display: flex;
    background: #f0f2f5;
}

/* SIDEBAR */
.iam-admin-sidebar {
    width: 380px;
    background: white;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.iam-admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.iam-admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iam-admin-avatar,
.iam-admin-client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.iam-admin-search {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.iam-admin-search-input {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #f1f5f9;
}

.iam-admin-client-list {
    flex: 1;
    overflow: auto;
}

.iam-admin-client-item {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: .2s;
    border-bottom: 1px solid #f5f5f5;
}

    .iam-admin-client-item:hover {
        background: #f8fafc;
    }

    .iam-admin-client-item.active {
        background: #eff6ff;
    }

.iam-admin-client-info {
    flex: 1;
}

.iam-admin-client-name {
    font-weight: 600;
}

.iam-admin-client-last {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.iam-admin-unread {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* CHAT AREA */
.iam-admin-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.iam-admin-chat-header {
    height: 80px;
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.iam-admin-chat-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iam-admin-client-status {
    font-size: 13px;
    color: #16a34a;
}

.iam-admin-messages {
    flex: 1;
    overflow: auto;
    padding: 25px;
    background: black;
}

.iam-admin-input {
    background: white;
    padding: 18px;
    display: flex;
    gap: 12px;
}

.iam-admin-input-box {
    flex: 1;
    border: none;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 16px;
}

.iam-admin-send {
    border: none;
    background: #2563eb;
    color: white;
    padding: 0 24px;
    border-radius: 14px;
    cursor: pointer;
}

.iam-admin-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.iam-chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.iam-chat-time {
    font-size: 12px;
    color: #fff;
}

.iam-chat-read-status {
    font-size: 12px;
    font-weight: 600;
}

    .iam-chat-read-status.sent {
        color: #fff;
    }

    .iam-chat-read-status.read {
        color: #2563eb;
    }

.iam-chat-read-icon {
    font-size: 12px;
}

    .iam-chat-read-icon .read {
        color: #53bdeb;
    }

.iam-admin-empty-icon {
    font-size: 72px;
}

.iam-admin-empty-title {
    font-size: 24px;
    margin-top: 15px;
}

.iam-admin-chat-layout {
    overflow: hidden;
}

.iam-number-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.iam-number-input {
    width: 100%;
    padding-right: 45px;
}

.iam-number-prefix {
    position: absolute;
    left: 12px;
    color: #666;
    font-size: 14px;
    z-index: 2;
}

.iam-number-suffix {
    position: absolute;
    right: 45px;
    color: #666;
    font-size: 14px;
    z-index: 2;
}

.iam-number-input {
    padding-left: 40px;
    padding-right: 70px;
}
.iam-number-no-prefix {
    padding-left: 6px;
}

.iam-number-buttons {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #dcdcdc;
}

.iam-number-btn {
    flex: 1;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 10px;
    transition: .2s;
}

    .iam-number-btn:hover {
        background: #ececec;
    }
/* IAMButtonPopupMenu.razor.css */

.iam-btn-popupmenu-wrapper {
    width: fit-content;
    overflow: visible !important;
}
    .iam-btn-popupmenu-wrapper * {
        box-sizing: border-box;
    }
.iam-btn-popupmenu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    outline: none;
    background: #2563eb;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

    .iam-btn-popupmenu-button:hover {
        background: #1d4ed8;
    }

.iam-btn-popupmenu-arrow {
    font-size: 11px;
    transition: .2s;
}

    .iam-btn-popupmenu-arrow.open {
        transform: rotate(180deg);
    }

.iam-btn-popupmenu-container {
    position: absolute;
    z-index: 999999;
    overflow: visible;
    min-width: 180px;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.iam-btn-popupmenu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 11px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: .15s;
    color: #111827;
    font-size: 14px;
}

    .iam-btn-popupmenu-item:hover {
        background: #f3f4f6;
    }

    .iam-btn-popupmenu-item i {
        width: 18px;
        text-align: center;
    }

    .iam-btn-popupmenu-item.disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.iam-btn-popupmenu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}
/* =========================================================
   IAM DATE TIME PICKER
   CLEAN + STABLE
   JANGAN OVERRIDE GLOBAL ELEMENT
========================================================= */

/* =========================================================
   WRAPPER
========================================================= */

.iam-dtp-wrapper {
    
    width: 100%;
    font-family: Inter, Segoe UI, sans-serif;
}

/* =========================================================
   LABEL
========================================================= */

.iam-dtp-form-label {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.iam-dtp-form-required {
    color: #ef4444;
    font-weight: 700;
}

/* =========================================================
   INPUT BOX
========================================================= */

.iam-dtp-box {
    position: relative;
    width: 100%;
}

/* =========================================================
   INPUT
========================================================= */

.iam-dtp-input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 48px 0 14px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    outline: none;
    transition: all .18s ease;
    cursor: pointer;
}

    .iam-dtp-input:hover {
        border-color: #9ca3af;
    }

    .iam-dtp-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

/* =========================================================
   ICON
========================================================= */

.iam-dtp-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all .18s ease;
}

    .iam-dtp-icon:hover {
        background: #eff6ff;
    }

/* =========================================================
   POPUP
========================================================= */

.iam-dtp-popup {
    position: absolute;
    
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    box-sizing: border-box;
    z-index: 99999;
    box-shadow: 0 20px 40px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.08);
    animation: iam-dtp-popup-show .15s ease;
}
    .iam-dtp-popup.dual{
        min-width:600px !important;
    }
/* =========================================================
   FORM
========================================================= */

.iam-dtp-form {
    width: 100%;
}

/* =========================================================
   HEADER
========================================================= */

.iam-dtp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

    .iam-dtp-header span {
        padding: 8px 12px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all .18s ease;
    }

        .iam-dtp-header span:hover {
            background: #eff6ff;
            color: #2563eb;
        }

/* =========================================================
   NAV BUTTON
========================================================= */

.iam-dtp-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
    font-size: 18px;
    font-weight: 700;
    user-select: none;
}

    .iam-dtp-nav-btn:hover {
        background: #2563eb;
        color: #ffffff;
    }
.iam-dtp-calendar-title {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    column-gap: 50px;
    width: 100%;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    color: #1e293b;
    border-radius: 10px;
    user-select: none;
    transition: all .2s ease;
}
/* =========================================================
   GRID
========================================================= */

.iam-dtp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

    /* MONTH/YEAR */

    .iam-dtp-grid.month,
    .iam-dtp-grid.year {
        grid-template-columns: repeat(3, 1fr);
    }

    /* TIME */

    .iam-dtp-grid.time {
        grid-template-columns: repeat(3, 1fr);
        max-height: 260px;
        overflow-y: auto;
    }

/* =========================================================
   DAY NAME
========================================================= */

.iam-dtp-day-name {
    text-align: center;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
}

/* =========================================================
   EMPTY
========================================================= */

.iam-dtp-empty {
    height: 40px;
}

/* =========================================================
   DAY
========================================================= */

.iam-dtp-day {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all .18s ease;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

    .iam-dtp-day:hover {
        background: #eff6ff;
        color: #2563eb;
    }

    .iam-dtp-day.selected {
        background: linear-gradient(135deg,#2563eb,#3b82f6);
        color: #ffffff;
        font-weight: 700;
    }

    .iam-dtp-day.today {
        border: 1px solid #93c5fd;
        background: #eff6ff;
        color: #2563eb;
    }

    .iam-dtp-day.sunday {
        color: #dc2626;
    }

    .iam-dtp-day.holiday {
        background: #fff7ed;
        color: #ea580c;
    }
/* =========================================
   HOLIDAY INFO BAR
========================================= */

.iam-dtp-holiday-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient( 135deg, rgba(239,68,68,.08), rgba(249,115,22,.08));
    border: 1px solid rgba(239,68,68,.12);
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s ease;
}

/* DOT */

.iam-dtp-holiday-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ef4444;
    flex-shrink: 0;
}

/* TEXT */

.iam-dtp-holiday-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* =========================================================
   MONTH YEAR ITEM
========================================================= */
.iam-dtp-month-picker,
.iam-dtp-year-picker {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    padding: 10px;
}
.iam-dtp-month-item,
.iam-dtp-year-item {
    height: 42px;
    border-radius: 12px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
    font-size: 14px;
    font-weight: 600;
}

    .iam-dtp-month-item:hover,
    .iam-dtp-year-item:hover {
        background: #2563eb;
        color: #ffffff;
    }
/* =========================================
   YEAR HEADER
========================================= */

.iam-dtp-year-wrapper {
    padding: 10px;
}

.iam-dtp-year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.iam-dtp-year-title {
    font-size: 13px;
    font-weight: 600;
}

.iam-dtp-year-nav {
    border: none;
    background: #CBF2DF;
    cursor: pointer;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: .2s;
    color: white;
}

    .iam-dtp-year-nav:hover {
        background: #98FACB;
    }
/* =========================================================
   FOOTER
========================================================= */

.iam-dtp-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.iam-dtp-footer-action {
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
}

    .iam-dtp-footer-action:hover {
        background: #2563eb;
        color: #ffffff;
    }

.iam-dtp-time-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.iam-dtp-time-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iam-dtp-time-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.iam-dtp-time-number {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    outline: none;
    transition: all .18s ease;
}

    .iam-dtp-time-number:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

.iam-dtp-time-separator,
.iam-dtp-time-range-separator {
    font-size: 22px;
    font-weight: 700;
    color: #6b7280;
}
.iam-dtp-time-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.iam-dtp-time-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    padding-left: 2px;
}
@media (max-width: 768px) {

    .iam-dtp-time-range-row {
        flex-direction: column;
        align-items: stretch;
    }

    .iam-dtp-time-number {
        height: 44px;
        font-size: 16px;
    }
}

/* =========================================================
   RANGE
========================================================= */

.iam-dtp-range-popup-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.iam-dtp-range-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

.iam-dtp-range-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.iam-dtp-range-cal {
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 10px;
}

.iam-dtp-range-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* =========================================
   RANGE BACKGROUND
========================================= */

.iam-dtp-day.in-range {
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 0;
}

/* START */

.iam-dtp-day.range-start {
    background: linear-gradient( 135deg, #2563eb, #3b82f6);
    color: #fff;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* END */

.iam-dtp-day.range-end {
    background: linear-gradient( 135deg, #2563eb, #3b82f6);
    color: #fff;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* SINGLE */

.iam-dtp-day.range-start.range-end {
    border-radius: 12px;
}

/* =========================================================
   BUTTON
========================================================= */

.iam-dtp-btn {
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

    .iam-dtp-btn.cancel {
        background: #f3f4f6;
        color: #374151;
    }

    .iam-dtp-btn.apply {
        background: linear-gradient(135deg,#2563eb,#3b82f6);
        color: #ffffff;
    }
.iam-dtp-datetime-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .iam-dtp-popup {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        top: auto;
        width: auto;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 20px;
    }

    .iam-dtp-grid.month,
    .iam-dtp-grid.year {
        grid-template-columns: repeat(2, 1fr);
    }

    .iam-dtp-grid.time {
        grid-template-columns: repeat(2, 1fr);
    }

    .iam-dtp-time-input {
        grid-column: span 2;
    }

    .iam-dtp-range-body {
        grid-template-columns: 1fr;
    }

    .iam-dtp-range-footer {
        flex-direction: column;
    }

    .iam-dtp-btn {
        width: 100%;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .iam-dtp-day {
        height: 36px;
        font-size: 12px;
    }

    .iam-dtp-empty {
        height: 36px;
    }

    .iam-dtp-day-name {
        font-size: 10px;
    }

    .iam-dtp-header span {
        font-size: 13px;
    }
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes iam-dtp-popup-show {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iammaps-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iammaps-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.iammaps-search {
    display: flex;
    gap: 6px;
    flex: 1;
}

.iammaps-input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    padding: 0 14px;
}

.iammaps-btn {
    height: 42px;
    border: none;
    padding: 0 18px;
    border-radius: 10px;
    cursor: pointer;
}

.iammaps-map {
    width: 100%;
    height: 500px;
    border-radius: 14px;
    overflow: hidden;
}

.iammaps-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

/* =========================================================
   IAM IMAGE UPLOADER
========================================================= */
.iam-image-uploader-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iam-image-uploader-preview {
    position: relative;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    background: linear-gradient( 180deg, #ffffff 0%, #f8fafc 100% );
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04), 0 2px 4px rgba(15, 23, 42, 0.03);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
    .iam-image-uploader-preview img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
    .iam-image-uploader-preview:hover {
        border-color: #60a5fa;
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.10), 0 4px 12px rgba(15, 23, 42, 0.05);
    }

.iam-image-uploader-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iam-image-uploader-empty {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: #94a3b8;
    text-align: center;
}

    .iam-image-uploader-empty i {
        font-size: 56px;
        opacity: 0.7;
    }

    .iam-image-uploader-empty span {
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

.iam-image-uploader-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.iam-image-uploader-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.iam-image-uploader-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    background: linear-gradient( 180deg, #ffffff 0%, #f8fafc 100% );
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .iam-image-uploader-input:hover {
        border-color: #3b82f6;
        background: #f8fbff;
    }

    .iam-image-uploader-input:focus-within {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    }

    /* =========================================================
   FILE BUTTON
========================================================= */

    .iam-image-uploader-input::file-selector-button {
        border: none;
        outline: none;
        padding: 10px 16px;
        margin-right: 14px;
        border-radius: 12px;
        background: linear-gradient( 180deg, #3b82f6 0%, #2563eb 100% );
        color: white;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

        .iam-image-uploader-input::file-selector-button:hover {
            opacity: 0.92;
            transform: translateY(-1px);
        }

/* =========================================================
   ERROR
========================================================= */

.iam-image-uploader-error {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .iam-image-uploader-preview {
        border-radius: 18px;
    }

    .iam-image-uploader-input {
        padding: 12px;
    }

    .iam-image-uploader-empty i {
        font-size: 46px;
    }
}

/**======================================*/
/*Data form*/
/**======================================*/
.iam-dataform {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.iam-form-item-template {
    margin-top: -10px;
}
.iam-dataform-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.iam-dataform-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.iam-dataform-btn {
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}
.iam-form-editor{
    margin-top:0px;
}
.iam-dataform-btn-primary {
    background: #2563eb;
    color: white;
}

    .iam-dataform-btn-primary:hover {
        opacity: .9;
    }

.iam-dataform-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.iam-dataform-btn-danger {
    background: #dc2626;
    color: white;
}
.validation-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

.iam-dataform-field {
    width: 100%;
}
.iam-dataform-item {
    display: flex;
    gap: 12px;
    width: 100%;
}

    .iam-dataform-item.left-label {
        align-items: flex-start;
    }

    .iam-dataform-item.top-label {
        flex-direction: column;
    }

.iam-dataform-label {
    min-width: 180px;
    font-weight: 600;
    white-space: nowrap;
    padding-top: 10px;
}

.iam-dataform-field {
    flex: 1;
    width: 100%;
}

.iam-dataform-input {
    width: 100%;
    box-sizing: border-box;
}
.iam-dataform-item {
    display: flex;
    gap: 12px;
}

    .iam-dataform-item.top-label {
        flex-direction: column;
    }

    .iam-dataform-item.left-label {
        flex-direction: row;
        align-items: center;
    }

.iam-dataform-label {
    font-weight: 600;
    min-width: var(--iam-label-width,180px);
}

.iam-dataform-input {
    width: 100%;
    height: 40px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.iam-dataform-checkbox {
    width: 18px;
    height: 18px;
}

.iam-selectlist-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iam-selectlist-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.iam-selectlist-items {
    display: grid;
    gap: 10px;
}

.iam-selectlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

    .iam-selectlist-item input {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

/*================================================*/
/* DATAGRID*/
/*===============================================*/
/* =====================================================
   ROOT
   ===================================================== */

.iam-grd-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;

    --iam-grd-header-height: 44px;
    --iam-grd-bg-header: #f8fafc;
    --iam-grd-bg-filter: #ffffff;
    --iam-grd-bg-hover: #f8fafc;
    --iam-grd-border: #e5e7eb;
    --iam-grd-border-dark: #d1d5db;
    --iam-grd-text: #374151;
    --iam-grd-text-light: #6b7280;
    --iam-grd-primary: #2563eb;
    --iam-grd-danger: #dc2626;
}

/* =====================================================
   TOOLBAR
   ===================================================== */

.iam-grd-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid var(--iam-grd-border);
}

.iam-grd-toolbar-left,
.iam-grd-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* =====================================================
   CONTENT
   ===================================================== */

.iam-grd-content {
    flex: 1;
    overflow: auto;
    min-height: 0;
}

/* =====================================================
   TABLE
   ===================================================== */

.iam-grd-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* =====================================================
   HEADER
   ===================================================== */

.iam-grd-header th {
    position: sticky;
    top: 0;
    background: linear-gradient( to bottom, #fafafa 0%, #f3f4f6 100% );
    color: var(--iam-grd-text);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid var(--iam-grd-border-dark);
    border-right: 1px solid var(--iam-grd-border);
    white-space: nowrap;
    z-index: 20;
    user-select: none;
    box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.03);
    transition: all .15s ease;
}

    .iam-grd-header th:last-child {
        border-right: none;
    }

    .iam-grd-header th.sortable:hover {
        background: linear-gradient( to bottom, #f5f5f5 0%, #ebedf0 100% );
        cursor: pointer;
    }

/* =====================================================
   SORTING
   ===================================================== */

.iam-grd-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.iam-grd-sort-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.iam-grd-sort-default {
    color: #9ca3af;
}

.iam-grd-sort-active {
    color: var(--iam-grd-primary);
    font-weight: 700;
}

.iam-grd-sort-clear {
    color: var(--iam-grd-danger);
    cursor: pointer;
    font-size: 11px;
}

    .iam-grd-sort-clear:hover {
        transform: scale(1.1);
    }

/* =====================================================
   FILTER
   ===================================================== */

.iam-grd-filter th {
    position: sticky;
    top: var(--iam-grd-header-height);
    background: var(--iam-grd-bg-filter);
    padding: 8px;
    border-bottom: 1px solid var(--iam-grd-border);
    border-right: 1px solid var(--iam-grd-border);
    z-index: 19;
    overflow: visible;
}

    .iam-grd-filter th:last-child {
        border-right: none;
    }

/* =====================================================
   TBODY
   ===================================================== */

.iam-grd-table tbody tr {
    transition: background-color .15s ease;
}

    .iam-grd-table tbody tr:nth-child(even) {
        background: #fcfcfd;
    }

    .iam-grd-table tbody tr:hover {
        background: var(--iam-grd-bg-hover);
    }

.iam-grd-table tbody td {
    padding: 10px 14px;
    color: var(--iam-grd-text);
    font-size: 13px;
    border-bottom: 1px solid #eef2f7;
    border-right: 1px solid #f1f5f9;
    vertical-align: middle;
}

    .iam-grd-table tbody td:last-child {
        border-right: none;
    }

/* =====================================================
   ROW EXPAND
   ===================================================== */

.iam-grd-table tbody tr:has(+ tr td[colspan]) {
    border-bottom: none;
}

/* =====================================================
   EMPTY DATA
   ===================================================== */

.iam-grd-empty {
    text-align: center;
    padding: 40px !important;
    color: var(--iam-grd-text-light);
    font-size: 14px;
    font-style: italic;
}

/* =====================================================
   FOOTER
   ===================================================== */

.iam-grd-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-top: 1px solid var(--iam-grd-border);
    background: #ffffff;
    flex-shrink: 0;
}

/* =====================================================
   PAGINATION
   ===================================================== */

.iam-grd-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .iam-grd-pagination button {
        min-width: 90px;
    }

/* =====================================================
   SCROLLBAR
   ===================================================== */

.iam-grd-content::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.iam-grd-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.iam-grd-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

    .iam-grd-content::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* =====================================================
   CALENDAR POPUP
   ===================================================== */

.iam-calendar-popup-modern {
    z-index: 9999;
}
/* ==========================
   SORT ICON
   ========================== */

.sort-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.sort-default {
    color: #9ca3af;
}

.sort-active {
    color: #2563eb;
    font-weight: 700;
}

.sort-clear {
    color: #ef4444;
    cursor: pointer;
    font-size: 11px;
}

    .sort-clear:hover {
        transform: scale(1.1);
    }

/* ==========================
   FILTER ROW
   ========================== */

.iam-grd-filter th {
    position: sticky;
    top: var(--iam-grd-header-height);
    background: #ffffff;
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    z-index: 19;
    overflow: visible;
}

    .iam-grd-filter th:last-child {
        border-right: none;
    }


/*===============================
    IMAGE LIST
==================================*/
.iam-image-list-holder {
    width: 100%;
}

/* ==========================================
   Toolbar
========================================== */

.iam-image-list-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.iam-image-list-category-select {
    min-width: 220px;
    padding: 10px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    outline: none;
}

/* ==========================================
   Category Header
========================================== */

.iam-image-list-category-header {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 16px;
    color: #222;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
}

/* ==========================================
   Grid Layout
========================================== */

.iam-image-list-image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ==========================================
   Card
========================================== */

.iam-image-list-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ececec;
    transition: all .25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

    .iam-image-list-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,.10);
    }

        .iam-image-list-card:hover .iam-image-list-image {
            transform: scale(1.05);
        }

/* ==========================================
   Image
========================================== */

.iam-image-list-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
    background: #f5f5f5;
}


/* ==========================================
   Content
========================================== */

.iam-image-list-image-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.iam-image-list-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.iam-image-list-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.iam-image-list-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 10px;
}

.iam-image-list-summary {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

/* ==========================================
   Paging
========================================== */

.iam-image-list-paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 10px;
}

    .iam-image-list-paging button {
        padding: 10px 18px;
        border: none;
        border-radius: 8px;
        background: #2563eb;
        color: white;
        cursor: pointer;
        transition: all .2s ease;
    }

        .iam-image-list-paging button:hover:not(:disabled) {
            background: #1d4ed8;
        }

        .iam-image-list-paging button:disabled {
            opacity: .5;
            cursor: not-allowed;
        }

    .iam-image-list-paging span {
        font-size: 14px;
        font-weight: 600;
        color: #555;
    }

/* ==========================================
   Responsive
========================================== */

@media (max-width: 992px) {

    .iam-image-list-image-grid {
        grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
    }

    .iam-image-list-image {
        height: 200px;
    }
}

@media (max-width: 768px) {

    .iam-image-list-image-toolbar {
        justify-content: stretch;
    }

    .iam-image-list-category-select {
        width: 100%;
    }

    .iam-image-list-image-grid {
        grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
        gap: 15px;
    }

    .iam-image-list-image {
        height: 180px;
    }

    .iam-image-list-title {
        font-size: .95rem;
    }
}

@media (max-width: 576px) {

    .iam-image-list-image-grid {
        grid-template-columns: 1fr;
    }

    .iam-image-list-image {
        height: 220px;
    }
}

/*=============================
    carousel
===============================*/
:root {
    --iam-carousel-detail-width: 35%;
}
.iam-carousel-container {
    position: relative;
}
.iam-carousel {
    position: relative;
    width: 100%;
}

.iam-carousel-slide {
    position: relative;
    overflow: hidden;
}

.iam-carousel-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background: rgba(0,0,0,.65);
    color: white;
}

.iam-carousel img {
    width: 100%;
    height: 450px;
    object-fit: fill;
    cursor: pointer;
}

.iam-carousel-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.65);
    color: white;
    padding: 20px;
}

.iam-carousel-hover-mode {
    position: relative;
    overflow: hidden;
}

.iam-carousel-hover {
    left: 100px;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: all .3s ease;
    padding-left: 80px;
    padding-right: 80px;
}

.iam-carousel-hover-mode:hover
.iam-carousel-hover {
    opacity: 1;
}

.iam-carousel-slide:hover
.iam-carousel-hover {
    opacity: 1;
}

.iam-carousel-prev,
.iam-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.iam-carousel-prev {
    left: 15px;
}

.iam-carousel-next {
    right: 15px;
}
.iam-carousel-detail-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iam-carousel-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.iam-carousel-date {
    font-size: 13px;
    opacity: .8;
}

.iam-carousel-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
}

.iam-carousel-summary {
    line-height: 1.6;
}

.iam-carousel-left,
.iam-carousel-right {
    display: flex;
    align-items: stretch;
    min-height: 450px;
}

    .iam-carousel-left .iam-carousel-detail,
    .iam-carousel-right .iam-carousel-detail {
        flex: 0 0 35%;
        padding: 40px;
        background: #f8f9fa;
        display: flex;
        align-items: center;
    }

    .iam-carousel-left .iam-carousel-image,
    .iam-carousel-right .iam-carousel-image {
        flex: 1;
        width: auto;
        height: 450px;
    }

.iam-carousel-mode-left .iam-carousel-prev {
    left: calc(35% + 15px);
}

.iam-carousel-mode-left .iam-carousel-next {
    right: 15px;
}
.iam-carousel-mode-right .iam-carousel-prev {
    left: 15px;
}

.iam-carousel-mode-right .iam-carousel-next {
    right: calc(35% + 15px);
}
@media(max-width:768px) {
    .iam-carousel-left,
    .iam-carousel-right {
        flex-direction: column;
    }

        .iam-carousel-left .iam-carousel-detail,
        .iam-carousel-right .iam-carousel-detail {
            flex: unset;
        }

    .iam-carousel-image {
        height: 250px;
    }
}


/* =========================
   STICK
   ========================= */

.iam-toggle-stick {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 20px;
    user-select: none;
}

.iam-toggle-stick-track {
    width: 52px;
    height: 28px;
    background: #d0d0d0;
    border-radius: 999px;
    position: relative;
    transition: .3s;
}

    .iam-toggle-stick-track.active {
        background: #0d6efd;
    }

.iam-toggle-stick-thumb {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: .3s;
}

.iam-toggle-stick-track.active
.iam-toggle-stick-thumb {
    left: 27px;
}

/* =========================
   SLIDER
   ========================= */

.iam-toggle-slider-wrapper {
    cursor: pointer;
    margin:20px;
}

.iam-toggle-slider {
    min-width: 200px;
    height: 38px;
    border-radius: 999px;
    background: #ececec;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.iam-toggle-slider-thumb {
    position: absolute;
    width: 50%;
    height: 100%;
    background: #0d6efd;
    left: 0;
    transition: .3s;
}

    .iam-toggle-slider-thumb.right {
        left: 50%;
    }

.iam-toggle-slider span {
    width: 50%;
    text-align: center;
    z-index: 2;
    font-weight: 600;
}

/* =========================
   PUSH
   ========================= */

.iam-toggle-push-wrapper {
    display: inline-block;
    margin: 20px;
}

.iam-toggle-push {
    min-width: 200px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
    background: #e0e0e0;
}

    .iam-toggle-push.active {
        background: #0d6efd;
        color: white;
    }


/*========================================
    SCHEDULER
==========================================*/
.iam-scheduler {
    font-family: sans-serif;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.iam-scheduler-toolbar {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    background: #fafafa;
}

    .iam-scheduler-toolbar button {
        padding: 6px 10px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 6px;
        cursor: pointer;
    }

    .iam-scheduler-toolbar select {
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #ddd;
    }
.iam-scheduler-body {
    padding: 10px;
}
.iam-scheduler-agenda {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.iam-scheduler-agenda-item {
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    cursor: pointer;
    transition: 0.2s;
}

    .iam-scheduler-agenda-item:hover {
        background: #eef2ff;
    }

.iam-scheduler-timeline {
    position: relative;
    height: 240px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow-x: auto;
    white-space: nowrap;
    background: #fff;
}

.iam-scheduler-timeline-block {
    position: absolute;
    height: 34px;
    border-radius: 6px;
    color: white;
    padding: 6px 8px;
    font-size: 12px;
    cursor: grab;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.iam-scheduler-booking {
    display: grid;
    gap: 10px;
}

.iam-scheduler-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #fafafa;
}

.iam-scheduler-row-title {
    width: 120px;
    font-weight: 600;
    color: #334155;
}

.iam-scheduler-slot {
    flex: 1;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: grab;
    transition: 0.2s;
}

    .iam-scheduler-slot:hover {
        background: #f1f5f9;
    }
.iam-scheduler-event {
    color: white;
    border-radius: 6px;
}
.iam-scheduler-dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.iam-scheduler-drop-hover {
    outline: 2px dashed #3b82f6;
}
.iam-scheduler-today {
    background: #fff7ed;
    border-left: 4px solid #f97316;
}
.iaminput-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .iaminput-password-wrapper .iaminput-form-input {
        width: 100%;
        padding-right: 45px;
    }

.iaminput-password-toggle {
    position: absolute;
    right: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin: 0;
}

    .iaminput-password-toggle:hover {
        opacity: .7;
    }

.iam-input-password-wrapper {
    position: relative;
        margin-top: 15px;
}

    .iam-input-password-wrapper .iam-input {
        padding-right: 42px;
        margin-top: -10px !important;
    }

.iam-input-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

/*================================
    BADGE
=================================*/
.iam-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    position: relative;
    user-select: none;
    cursor: pointer;
    transition: all .25s ease;
}

    .iam-badge:hover {
        transform: translateY(-1px);
    }

.iam-badge-image {
    object-fit: contain;
}

.iam-badge-small .iam-badge-image {
    width: 16px;
    height: 16px;
}

.iam-badge-medium .iam-badge-image {
    width: 20px;
    height: 20px;
}

.iam-badge-large .iam-badge-image {
    width: 28px;
    height: 28px;
}

.iam-badge-text {
    font-size: 13px;
    font-weight: 600;
}

.iam-badge-counter {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.iam-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.iam-status-online {
    background: #22c55e;
}

.iam-status-offline {
    background: #9ca3af;
}

.iam-status-busy {
    background: #ef4444;
}

.iam-status-away {
    background: #f59e0b;
}

.iam-badge-primary {
    background: #eff6ff;
    color: #2563eb;
}

.iam-badge-success {
    background: #ecfdf5;
    color: #16a34a;
}

.iam-badge-warning {
    background: #fffbeb;
    color: #d97706;
}

.iam-badge-danger {
    background: #fef2f2;
    color: #dc2626;
}

.iam-badge-info {
    background: #ecfeff;
    color: #0891b2;
}

.iam-badge-pulse {
    animation: iamBadgePulse 1.5s infinite;
}

@keyframes iamBadgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37,99,235,.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37,99,235,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37,99,235,0);
    }
}