/* =========================================================
   APP.CSS
   ADMIN DASHBOARD / WEB ADMIN
   ========================================================= */

/* =========================================================
   1. ROOT & VARIABLE
   ========================================================= */

:root {
    --primary: #FF4848;
    --primary-dark: #940000;
    --primary-light: #dbeafe;

    --secondary: #64748b;

    --success: #16a34a;
    --success-light: #dcfce7;

    --danger: #dc2626;
    --danger-light: #fee2e2;

    --warning: #d97706;
    --warning-light: #fef3c7;

    --info: #0891b2;
    --info-light: #cffafe;

    --dark: #0f172a;
    --dark-secondary: #1e293b;

    --white: #ffffff;

    --body-bg: #f1f5f9;
    --border-color: #e2e8f0;

    --text-dark: #1e293b;
    --text-muted: #64748b;

    --sidebar-width: 270px;
    --sidebar-width-mobile: 270px;

    --navbar-height: 70px;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

    --transition: all 0.3s ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background-color: var(--body-bg);
    color: var(--text-dark);

    font-size: 14px;
    line-height: 1.6;

    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    border: none;
    outline: none;
}

img {
    max-width: 100%;
}


/* =========================================================
   3. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   4. ADMIN WRAPPER
   ========================================================= */

.admin-wrapper {
    min-height: 100vh;
}


/* =========================================================
   5. SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: var(--sidebar-width);
    height: 100vh;

    background: linear-gradient(
        180deg,
        #0f172a 0%,
        #111827 100%
    );

    color: #ffffff;

    display: flex;
    flex-direction: column;

    z-index: 1050;

    transition: var(--transition);

    overflow-y: auto;

    box-shadow: var(--shadow);
}


/* =========================================================
   6. SIDEBAR HEADER / LOGO
   ========================================================= */

.sidebar-header {
    min-height: var(--navbar-height);

    display: flex;
    align-items: center;

    padding: 0 25px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 20px;
    font-weight: 700;

    color: #ffffff;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);

    border-radius: 12px;

    font-size: 20px;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.3);
}


/* =========================================================
   7. SIDEBAR MENU
   ========================================================= */

.sidebar-menu {
    padding: 20px 15px;

    flex: 1;
}

.menu-title {
    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;

    color: #94a3b8;

    padding: 10px 15px;

    margin-top: 5px;
    margin-bottom: 5px;
}

.menu-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 15px;

    margin-bottom: 5px;

    color: #cbd5e1;

    border-radius: var(--radius-sm);

    transition: var(--transition);

    position: relative;

    font-size: 14px;
    font-weight: 500;
}

.menu-item i {
    width: 20px;

    font-size: 17px;

    text-align: center;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    transform: translateX(3px);
}

.menu-item.active {
    background: var(--primary);

    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}

.menu-item.active::before {
    content: "";

    position: absolute;

    left: -15px;

    width: 4px;
    height: 25px;

    background: #ffffff;

    border-radius: 0 10px 10px 0;
}


/* =========================================================
   8. SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {
    padding: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;

    gap: 12px;
}

.sidebar-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;
}

.sidebar-user-info {
    flex: 1;

    overflow: hidden;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 12px;

    color: #94a3b8;
}


/* =========================================================
   9. MAIN CONTENT
   ========================================================= */

.main-content {
    margin-left: var(--sidebar-width);

    min-height: 100vh;

    transition: var(--transition);
}


/* =========================================================
   10. TOP NAVBAR
   ========================================================= */

.top-navbar {
    height: var(--navbar-height);

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    border-bottom:
        1px solid var(--border-color);

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow: var(--shadow-sm);
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;

    gap: 20px;
}

.navbar-title {
    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   11. SIDEBAR TOGGLE
   ========================================================= */

.sidebar-toggle {
    width: 42px;
    height: 42px;

    background: transparent;

    border-radius: var(--radius-sm);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-dark);

    font-size: 20px;

    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--body-bg);

    color: var(--primary);
}


/* =========================================================
   12. NAVBAR SEARCH
   ========================================================= */

.nav-search {
    position: relative;
}

.nav-search input {
    width: 250px;

    height: 42px;

    padding:
        0 15px
        0 42px;

    border:
        1px solid var(--border-color);

    border-radius: 10px;

    outline: none;

    transition: var(--transition);

    background: #f8fafc;
}

.nav-search input:focus {
    border-color: var(--primary);

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1);
}

.nav-search i {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);
}


/* =========================================================
   13. NOTIFICATION
   ========================================================= */

.nav-icon-btn {
    position: relative;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    color: var(--text-dark);

    transition: var(--transition);
}

.nav-icon-btn:hover {
    background: var(--body-bg);
}

.notification-badge {
    position: absolute;

    top: 6px;
    right: 6px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--danger);

    border: 2px solid #ffffff;
}


/* =========================================================
   14. NAVBAR USER
   ========================================================= */

.nav-user {
    display: flex;
    align-items: center;

    gap: 10px;

    cursor: pointer;

    padding: 5px 10px;

    border-radius: var(--radius-sm);

    transition: var(--transition);
}

.nav-user:hover {
    background: var(--body-bg);
}

.nav-user img {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    object-fit: cover;
}

.nav-user-name {
    font-weight: 600;

    font-size: 14px;
}

.nav-user-role {
    font-size: 12px;

    color: var(--text-muted);
}


/* =========================================================
   15. PAGE CONTENT
   ========================================================= */

.content {
    padding: 30px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 30px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;

    color: var(--dark);
}

.page-subtitle {
    color: var(--text-muted);

    margin-top: 5px;
}


/* =========================================================
   16. STATISTIC CARDS
   ========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;

    border-radius: var(--radius);

    padding: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: var(--shadow-sm);

    border:
        1px solid var(--border-color);

    transition: var(--transition);

    position: relative;

    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);
}

.stat-card-info h4 {
    color: var(--text-muted);

    font-size: 13px;

    font-weight: 500;

    margin-bottom: 7px;
}

.stat-card-info h2 {
    font-size: 25px;

    font-weight: 700;
}

.stat-card-icon {
    width: 58px;
    height: 58px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
}

.stat-primary {
    background: var(--primary-light);

    color: var(--primary);
}

.stat-success {
    background: var(--success-light);

    color: var(--success);
}

.stat-warning {
    background: var(--warning-light);

    color: var(--warning);
}

.stat-danger {
    background: var(--danger-light);

    color: var(--danger);
}

.stat-info {
    background: var(--info-light);

    color: var(--info);
}


/* =========================================================
   17. STATISTIC GROWTH
   ========================================================= */

.stat-growth {
    margin-top: 10px;

    font-size: 12px;

    display: flex;
    align-items: center;

    gap: 5px;
}

.stat-growth.up {
    color: var(--success);
}

.stat-growth.down {
    color: var(--danger);
}


/* =========================================================
   18. GRID CONTENT
   ========================================================= */

.content-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 20px;

    margin-bottom: 30px;
}


/* =========================================================
   19. CARD
   ========================================================= */

.card {
    background: #ffffff;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    margin-bottom: 20px;

    overflow: hidden;
}

.card-header {
    padding: 20px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid var(--border-color);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

.card-body {
    padding: 22px;
}

.card-footer {
    padding: 15px 22px;

    border-top:
        1px solid var(--border-color);

    background: #f8fafc;
}


/* =========================================================
   20. BUTTON
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 18px;

    border-radius: var(--radius-sm);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

    line-height: 1.5;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);

    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-success {
    background: var(--success);

    color: #ffffff;
}

.btn-danger {
    background: var(--danger);

    color: #ffffff;
}

.btn-warning {
    background: var(--warning);

    color: #ffffff;
}

.btn-secondary {
    background: var(--secondary);

    color: #ffffff;
}

.btn-outline-primary {
    border:
        1px solid var(--primary);

    color: var(--primary);

    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);

    color: #ffffff;
}

.btn-sm {
    padding: 7px 12px;

    font-size: 12px;
}

.btn-lg {
    padding: 13px 25px;

    font-size: 16px;
}


/* =========================================================
   21. FORM
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;
}

.form-control {
    width: 100%;

    height: 45px;

    padding: 10px 14px;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-sm);

    background: #ffffff;

    color: var(--text-dark);

    outline: none;

    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    height: auto;

    min-height: 120px;

    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


/* =========================================================
   22. INPUT GROUP
   ========================================================= */

.input-group {
    display: flex;

    width: 100%;
}

.input-group-text {
    height: 45px;

    padding: 0 15px;

    display: flex;
    align-items: center;

    background: #f8fafc;

    border:
        1px solid var(--border-color);

    color: var(--text-muted);
}

.input-group .form-control {
    border-radius: 0;
}

.input-group-text:first-child {
    border-radius:
        var(--radius-sm)
        0
        0
        var(--radius-sm);

    border-right: none;
}

.input-group-text:last-child {
    border-radius:
        0
        var(--radius-sm)
        var(--radius-sm)
        0;

    border-left: none;
}


/* =========================================================
   23. CHECKBOX & RADIO
   ========================================================= */

.form-check {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;
}

.form-check-input {
    width: 17px;
    height: 17px;

    accent-color: var(--primary);

    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}


/* =========================================================
   24. FORM ACTION
   ========================================================= */

.form-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    padding-top: 10px;
}


/* =========================================================
   25. TABLE
   ========================================================= */

.table-responsive {
    width: 100%;

    overflow-x: auto;
}

.table {
    width: 100%;

    border-collapse: collapse;
}

.table th {
    text-align: left;

    padding: 14px 15px;

    font-size: 12px;

    text-transform: uppercase;

    color: var(--text-muted);

    background: #f8fafc;

    border-bottom:
        1px solid var(--border-color);
}

.table td {
    padding: 15px;

    border-bottom:
        1px solid var(--border-color);

    vertical-align: middle;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: #f8fafc;
}

.table-avatar {
    display: flex;
    align-items: center;

    gap: 10px;
}

.table-avatar img {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    object-fit: cover;
}


/* =========================================================
   26. BADGE
   ========================================================= */

.badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-light);

    color: var(--primary);
}

.badge-success {
    background: var(--success-light);

    color: var(--success);
}

.badge-danger {
    background: var(--danger-light);

    color: var(--danger);
}

.badge-warning {
    background: var(--warning-light);

    color: var(--warning);
}


/* =========================================================
   27. ALERT
   ========================================================= */

.alert {
    padding: 15px 18px;

    border-radius: var(--radius-sm);

    margin-bottom: 20px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.alert-primary {
    background: var(--primary-light);

    color: var(--primary);
}

.alert-success {
    background: var(--success-light);

    color: var(--success);
}

.alert-danger {
    background: var(--danger-light);

    color: var(--danger);
}

.alert-warning {
    background: var(--warning-light);

    color: var(--warning);
}


/* =========================================================
   28. PROGRESS BAR
   ========================================================= */

.progress {
    width: 100%;

    height: 8px;

    background: #e2e8f0;

    border-radius: 20px;

    overflow: hidden;
}

.progress-bar {
    height: 100%;

    background: var(--primary);

    border-radius: inherit;

    transition: width 0.5s ease;
}


/* =========================================================
   29. LIST
   ========================================================= */

.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;

    gap: 15px;

    padding-bottom: 20px;

    position: relative;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
}

.activity-time {
    font-size: 12px;

    color: var(--text-muted);
}


/* =========================================================
   30. DROPDOWN
   ========================================================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    min-width: 180px;

    background: #ffffff;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-sm);

    box-shadow: var(--shadow);

    padding: 8px;

    display: none;

    z-index: 1100;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 12px;

    border-radius: 6px;

    font-size: 13px;

    transition: var(--transition);
}

.dropdown-item:hover {
    background: #f1f5f9;

    color: var(--primary);
}


/* =========================================================
   31. MODAL
   ========================================================= */

.modal {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(15, 23, 42, 0.5);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 2000;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 550px;

    background: #ffffff;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    overflow: hidden;

    animation: modalAnimation 0.3s ease;
}

@keyframes modalAnimation {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;

    font-weight: 700;
}

.modal-close {
    width: 35px;
    height: 35px;

    border-radius: 50%;

    cursor: pointer;

    background: #f1f5f9;

    font-size: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;

    display: flex;
    justify-content: flex-end;

    gap: 10px;

    border-top:
        1px solid var(--border-color);
}


/* =========================================================
   32. PAGINATION
   ========================================================= */

.pagination {
    display: flex;

    align-items: center;

    gap: 5px;

    list-style: none;
}

.page-link {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-sm);

    color: var(--text-dark);

    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);

    color: #ffffff;

    border-color: var(--primary);
}


/* =========================================================
   33. EMPTY STATE
   ========================================================= */

.empty-state {
    text-align: center;

    padding: 50px 20px;

    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 50px;

    margin-bottom: 15px;

    color: #cbd5e1;
}

.empty-state h4 {
    color: var(--text-dark);

    margin-bottom: 8px;
}


/* =========================================================
   34. FOOTER
   ========================================================= */

.footer {
    padding: 20px 30px;

    color: var(--text-muted);

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   35. LOADING
   ========================================================= */

.loading-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(255, 255, 255, 0.8);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 45px;
    height: 45px;

    border:
        4px solid #e2e8f0;

    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   36. UTILITIES
   ========================================================= */

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

.gap-1 {
    gap: 5px;
}

.gap-2 {
    gap: 10px;
}

.gap-3 {
    gap: 15px;
}

.gap-4 {
    gap: 20px;
}

.text-center {
    text-align: center;
}

.text-start {
    text-align: left;
}

.text-end {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-muted {
    color: var(--text-muted);
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.mt-1 {
    margin-top: 5px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 5px;
}

.p-2 {
    padding: 10px;
}

.p-3 {
    padding: 15px;
}

.p-4 {
    padding: 20px;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* =========================================================
   SIDEBAR FULL HIDE
========================================================= */

/* Transisi sidebar */
.sidebar {
    transition:
        transform 0.3s ease,
        width 0.3s ease;
}


/* Main content */
.main-content,
.main-wrapper,
.page-content {
    transition:
        margin-left 0.3s ease,
        width 0.3s ease;
}


/* =========================================================
   DESKTOP - SIDEBAR TERSEMBUNYI SEPENUHNYA
========================================================= */

body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}


/* Jika layout menggunakan margin-left */
body.sidebar-collapsed .main-content,
body.sidebar-collapsed .main-wrapper {
    margin-left: 0;
}


/* Jika ada header yang mengikuti sidebar */
body.sidebar-collapsed .main-header,
body.sidebar-collapsed .topbar {
    left: 0;
    width: 100%;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991.98px) {

    .sidebar {
        transform: translateX(-100%);
    }


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


    body.sidebar-open {
        overflow: hidden;
    }

}

/* =========================================================
   37. RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   38. RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 992px) {

    .sidebar {
        transform:
            translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;

        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        background:
            rgba(15, 23, 42, 0.5);

        display: none;

        z-index: 1040;
    }

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

}


/* =========================================================
   39. RESPONSIVE SMALL MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .top-navbar {
        padding: 0 15px;
    }

    .content {
        padding: 20px 15px;
    }

    .nav-search {
        display: none;
    }

    .navbar-title {
        display: none;
    }

    .nav-user-info {
        display: none;
    }

    .page-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .page-title {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .card-body {
        padding: 15px;
    }

    .card-header {
        padding: 15px;
    }

    .table th,
    .table td {
        padding: 12px 10px;

        white-space: nowrap;
    }

}


/* =========================================================
   40. RESPONSIVE EXTRA SMALL
   ========================================================= */

@media (max-width: 480px) {

    .content {
        padding: 15px 10px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 17px;
    }

    .stat-card-info h2 {
        font-size: 22px;
    }

    .stat-card-icon {
        width: 50px;
        height: 50px;

        font-size: 20px;
    }

    .navbar-right {
        gap: 8px;
    }

    .nav-icon-btn {
        width: 38px;
        height: 38px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

}

/* =========================================================
   DATA KARYAWAN HR
========================================================= */

/* PAGE HEADER */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-header h1 {
    margin: 8px 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.page-header p {
    margin: 0;
    color: #6b7280;
}


/* BREADCRUMB */

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
}

.breadcrumb-custom a {
    color: #FF4848;
    text-decoration: none;
}

.breadcrumb-custom i {
    font-size: 10px;
}


/* PAGE HEADER ACTION */

.page-header-action {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   STAT CARD
========================================================= */

.stat-card {
    min-height: 125px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 22px;
}

.stat-card-icon.primary {
    color: #FF4848;
    background: #eff6ff;
}

.stat-card-icon.success {
    color: #059669;
    background: #ecfdf5;
}

.stat-card-icon.warning {
    color: #d97706;
    background: #fffbeb;
}

.stat-card-icon.danger {
    color: #dc2626;
    background: #fef2f2;
}

.stat-card-content {
    display: flex;
    flex-direction: column;
}

.stat-card-content span {
    font-size: 13px;
    color: #6b7280;
}

.stat-card-content strong {
    margin-top: 3px;
    font-size: 27px;
    font-weight: 700;
    color: #1f2937;
}

.stat-card-content small {
    margin-top: 2px;
    font-size: 11px;
    color: #9ca3af;
}


/* =========================================================
   DEPARTMENT CARD
========================================================= */

.department-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    transition: 0.2s ease;
}

.department-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.department-card-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4848;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 18px;
}

.department-card span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #6b7280;
}

.department-card strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
}


/* =========================================================
   CONTENT CARD
========================================================= */

.content-card {
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #eef0f4;
}

.content-card-header h5 {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
}

.content-card-header p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}


/* =========================================================
   FILTER BAR
========================================================= */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid #eef0f4;
}

.filter-search {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.filter-search > i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9ca3af;
}

.filter-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
}

.filter-search input:focus {
    border-color: #FF4848;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.filter-select {
    width: 210px;
    min-width: 210px;
}


/* =========================================================
   ADMIN TABLE
========================================================= */

.admin-table {
    margin: 0;
    white-space: nowrap;
}

.admin-table thead th {
    padding: 15px 16px;
    border-bottom: 1px solid #eef0f4;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-color: #f1f5f9;
}

.admin-table tbody tr:hover {
    background: #fafcff;
}


/* =========================================================
   EMPLOYEE
========================================================= */

.employee-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4848;
    background: #eff6ff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.employee-name strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
}

.employee-name span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #9ca3af;
}

.employee-number {
    font-size: 13px;
    color: #374151;
}


/* =========================================================
   BADGE
========================================================= */

.badge-soft-primary {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color: #FF4848;
    background: #eff6ff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   TABLE ACTION
========================================================= */

.table-action-group {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.btn-action {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-view {
    color: #FF4848;
    background: #eff6ff;
}

.btn-view:hover {
    color: #ffffff;
    background: #FF4848;
}

.btn-edit {
    color: #d97706;
    background: #fffbeb;
}

.btn-edit:hover {
    color: #ffffff;
    background: #d97706;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding: 50px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 50%;
    font-size: 25px;
}

.empty-state h5 {
    margin-bottom: 7px;
    color: #374151;
}

.empty-state p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
}


/* =========================================================
   TABLE FOOTER
========================================================= */

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-top: 1px solid #eef0f4;
}

.table-info {
    font-size: 13px;
    color: #6b7280;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-custom li a,
.pagination-custom li span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
}

.pagination-custom li a:hover {
    color: #FF4848;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.pagination-custom li.active a {
    color: #ffffff;
    background: #FF4848;
    border-color: #FF4848;
}

.pagination-custom li.disabled span {
    color: #cbd5e1;
    background: #f8fafc;
}


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

@media (max-width: 991.98px) {

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-search {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

}


@media (max-width: 767.98px) {

    .page-header h1 {
        font-size: 23px;
    }

    .page-header-action {
        width: 100%;
    }

    .page-header-action .btn {
        width: 100%;
        justify-content: center;
    }

    .content-card-header {
        padding: 18px;
    }

    .filter-bar {
        padding: 15px;
    }

    .table-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

    .pagination-custom {
        flex-wrap: wrap;
    }

}

/* =========================================================
   TAMBAH KARYAWAN HR
========================================================= */

.content-card-body {
    padding: 24px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.form-section-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    font-size: 18px;
}

.form-section-icon.primary {
    color: #FF4848;
    background: #eff6ff;
}

.form-section-icon.success {
    color: #059669;
    background: #ecfdf5;
}

.form-section-icon.warning {
    color: #d97706;
    background: #fffbeb;
}

.form-section-icon.danger {
    color: #dc2626;
    background: #fef2f2;
}

.form-section-title h5 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.form-section-title p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-control,
.form-select {
    min-height: 44px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    font-size: 14px;
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: #FF4848;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.08);
}

.hr-info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 18px;
    margin-bottom: 16px;

    background: #eff6ff;

    border:
        1px solid
        #dbeafe;

    border-radius: 14px;
}

.hr-info-card-icon {
    color: #FF4848;
    font-size: 20px;
}

.hr-info-card h6 {
    margin: 0 0 5px;

    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
}

.hr-info-card p {
    margin: 0;

    font-size: 12px;
    line-height: 1.6;
    color: #475569;
}


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

@media (max-width: 767.98px) {

    .content-card-body {
        padding: 18px;
    }

    .form-section-title {
        align-items: flex-start;
    }

}

/* =========================================================
   DETAIL KARYAWAN
========================================================= */

/* =========================================
   PROFILE
========================================= */

.employee-detail-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 4px;
}

.employee-detail-avatar {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #7c3aed,
        #a855f7
    );

    color: #ffffff;

    font-size: 28px;
    font-weight: 700;

    box-shadow:
        0 10px 25px
        rgba(124, 58, 237, 0.22);
}

.employee-detail-info {
    min-width: 0;
}

.employee-detail-info h2 {
    margin: 0;

    font-size: 24px;
    font-weight: 700;

    color: #1e1b4b;

    line-height: 1.35;
}

.employee-detail-info p {
    margin: 8px 0 0;

    color: #6b7280;

    font-size: 14px;
}

.employee-detail-info p i {
    margin-right: 5px;

    color: #7c3aed;
}


/* =========================================
   CONTENT CARD
========================================= */

.content-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #ebe7f4;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 4px 20px
        rgba(40, 28, 80, 0.04);
}

.content-card-header {
    padding: 20px 24px;

    border-bottom: 1px solid #f0edf5;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fcfbfe
        );
}

.content-card-body {
    padding: 24px;
}


/* =========================================
   SECTION TITLE
========================================= */

.form-section-title {
    display: flex;

    align-items: center;

    gap: 14px;
}

.form-section-title h5 {
    margin: 0;

    font-size: 15px;

    font-weight: 700;

    color: #25213b;
}

.form-section-title p {
    margin: 4px 0 0;

    font-size: 13px;

    color: #8a8498;
}


/* =========================================
   SECTION ICON
========================================= */

.form-section-icon {
    width: 42px;

    height: 42px;

    min-width: 42px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}


/* PRIMARY */

.form-section-icon.primary {
    background: #f0e9ff;

    color: #7c3aed;
}


/* SUCCESS */

.form-section-icon.success {
    background: #e8f8ef;

    color: #16a34a;
}


/* WARNING */

.form-section-icon.warning {
    background: #fff4db;

    color: #d97706;
}


/* DANGER */

.form-section-icon.danger {
    background: #ffe8ec;

    color: #dc2626;
}


/* =========================================
   DETAIL GRID
========================================= */

.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* FULL WIDTH */

.detail-item-full {
    grid-column: 1 / -1;
}


/* =========================================
   DETAIL ITEM
========================================= */

.detail-item {
    position: relative;

    padding: 16px 18px;

    background: #faf9fc;

    border: 1px solid #f0edf5;

    border-radius: 12px;

    min-height: 82px;

    transition:
        all 0.2s ease;
}

.detail-item:hover {
    background: #ffffff;

    border-color: #ddd5ec;

    box-shadow:
        0 6px 16px
        rgba(40, 28, 80, 0.06);

    transform:
        translateY(-1px);
}

.detail-item span {
    display: block;

    margin-bottom: 7px;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    color: #91899f;
}

.detail-item strong {
    display: block;

    color: #2d2838;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.6;

    word-break: break-word;
}


/* =========================================
   RIGHT SIDEBAR LIST
========================================= */

.detail-side-list {
    display: flex;

    flex-direction: column;

    gap: 0;
}

.detail-side-list > div {
    display: flex;

    flex-direction: column;

    gap: 6px;

    padding: 16px 0;

    border-bottom:
        1px solid #f0edf5;
}

.detail-side-list > div:first-child {
    padding-top: 0;
}

.detail-side-list > div:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.detail-side-list span {
    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    color: #91899f;
}

.detail-side-list strong {
    font-size: 14px;

    font-weight: 600;

    color: #2d2838;

    line-height: 1.5;

    word-break: break-word;
}


/* =========================================
   CONTRACT STATUS
========================================= */

.detail-contract-status {
    display: flex;

    margin-bottom: 20px;
}


/* =========================================
   BADGE
========================================= */

.badge-soft-primary,
.badge-soft-success,
.badge-soft-warning,
.badge-soft-danger,
.badge-soft-secondary {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 28px;

    padding: 5px 10px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;
}


/* PRIMARY */

.badge-soft-primary {
    color: #6d28d9;

    background: #f0e9ff;
}


/* SUCCESS */

.badge-soft-success {
    color: #15803d;

    background: #e8f8ef;
}


/* WARNING */

.badge-soft-warning {
    color: #b45309;

    background: #fff4db;
}


/* DANGER */

.badge-soft-danger {
    color: #b91c1c;

    background: #ffe8ec;
}


/* SECONDARY */

.badge-soft-secondary {
    color: #6b7280;

    background: #f1f1f3;
}


/* =========================================
   PAGE HEADER
========================================= */

.page-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 24px;

    margin-bottom: 28px;
}

.page-header h1 {
    margin: 8px 0 5px;

    font-size: 26px;

    font-weight: 700;

    color: #25213b;
}

.page-header > div > p {
    margin: 0;

    color: #81798e;

    font-size: 14px;
}


/* =========================================
   BREADCRUMB
========================================= */

.breadcrumb-custom {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    font-size: 13px;
}

.breadcrumb-custom a {
    color: #7c3aed;

    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: #5b21b6;

    text-decoration: underline;
}

.breadcrumb-custom span {
    color: #9d96a9;
}

.breadcrumb-custom i {
    font-size: 10px;
}


/* =========================================
   PAGE HEADER ACTION
========================================= */

.page-header-action {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}


/* =========================================
   BUTTON
========================================= */

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border-radius: 9px;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition:
        all 0.2s ease;
}

.btn-light {
    background: #ffffff;

    color: #5f5769;

    border: 1px solid #e4dfeb;
}

.btn-light:hover {
    background: #f8f7fa;

    color: #322b3b;

    border-color: #d7d0df;
}

.btn-primary {
    background: #7c3aed;

    color: #ffffff;

    border: 1px solid #7c3aed;

    box-shadow:
        0 5px 15px
        rgba(124, 58, 237, 0.16);
}

.btn-primary:hover {
    background: #6d28d9;

    border-color: #6d28d9;

    color: #ffffff;

    transform:
        translateY(-1px);
}


/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 991.98px) {

    .page-header {
        flex-direction: column;
    }

    .page-header-action {
        width: 100%;
    }

}


/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 767.98px) {

    .content-card-header,
    .content-card-body {
        padding: 18px;
    }

    .employee-detail-profile {
        align-items: flex-start;
    }

    .employee-detail-avatar {
        width: 62px;

        height: 62px;

        min-width: 62px;

        border-radius: 18px;

        font-size: 23px;
    }

    .employee-detail-info h2 {
        font-size: 20px;
    }

    .detail-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .detail-item-full {
        grid-column: auto;
    }

    .detail-item {
        padding: 14px 15px;

        min-height: auto;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .page-header-action {
        flex-direction: column;

        align-items: stretch;
    }

    .page-header-action .btn {
        width: 100%;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .employee-detail-profile {
        gap: 14px;
    }

    .employee-detail-avatar {
        width: 54px;

        height: 54px;

        min-width: 54px;

        border-radius: 16px;

        font-size: 20px;
    }

    .employee-detail-info h2 {
        font-size: 18px;
    }

    .employee-detail-info p {
        font-size: 12px;
    }

    .form-section-title {
        align-items: flex-start;
    }

    .form-section-title p {
        font-size: 12px;
    }

}

/* =========================================
   DELETE BUTTON
========================================= */

.btn-delete {
    border: 0;
    cursor: pointer;

    background: #fff1f2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fee2e2;
    color: #b91c1c;
}


/* =========================================
   DELETE MODAL
========================================= */

.modal-subtitle {
    margin: 4px 0 0;

    font-size: 13px;

    color: #8a8498;
}

.delete-confirm-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #fff1f2;

    color: #dc2626;

    font-size: 26px;
}

.delete-confirm-text {
    margin: 0 0 8px;

    text-align: center;

    color: #6b7280;
}

#deleteEmployeeName {
    display: block;

    text-align: center;

    font-size: 17px;

    color: #1f2937;
}

.delete-confirm-warning {
    margin: 16px 0 0;

    text-align: center;

    font-size: 13px;

    color: #9ca3af;
}

/* =========================================================
   SIDEBAR LOGO
========================================================= */

.sidebar-brand-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 12px;

    background: transparent;
}

.sidebar-logo {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.menu-detail-button {
    display: block;
    width: 100%;

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    color: inherit;
    font: inherit;

    text-align: left;

    cursor: pointer;
}

.menu-detail-button .border {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.menu-detail-button:hover .border {
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, 0.4) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.menu-detail-button:focus {
    outline: none;
}

.menu-detail-button:focus .border {
    border-color:
        rgba(13, 110, 253, 0.7) !important;
    box-shadow:
        0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* =========================================================
   INTERACTIVE MENU LINK
========================================================= */

.menu-detail-link {
    display: block;
    width: 100%;

    color: inherit;

    cursor: pointer;

    transition: 0.2s ease;
}


/* CARD */

.menu-detail-link .border {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/* HOVER */

.menu-detail-link:hover .border {

    transform: translateY(-2px);

    border-color: rgba(13, 110, 253, 0.4) !important;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);

}


/* ACTIVE / SAAT DIKLIK */

.menu-detail-link:active .border {

    transform: translateY(0);

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.08);

}


/* FOCUS KEYBOARD */

.menu-detail-link:focus {

    outline: none;

}


.menu-detail-link:focus .border {

    border-color:
        rgba(13, 110, 253, 0.7) !important;

    box-shadow:
        0 0 0 0.2rem
        rgba(13, 110, 253, 0.15);

}

/* =========================================================
   FOOTER CREDIT LINK
========================================================= */

.footer-credit-link {

    color: #0d6efd;

    text-decoration: none;

    font-weight: 600;

    position: relative;

    cursor: pointer;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;

}


/* GARIS BAWAH */

.footer-credit-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -2px;

    width: 100%;

    height: 1px;

    background-color: currentColor;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.2s ease;

}


/* HOVER */

.footer-credit-link:hover {

    color: #0a58ca;

}


.footer-credit-link:hover::after {

    transform: scaleX(1);

}


/* ACTIVE / SAAT DIKLIK */

.footer-credit-link:active {

    opacity: 0.7;

}


/* FOCUS */

.footer-credit-link:focus {

    outline: none;

}


.footer-credit-link:focus-visible {

    outline: 2px solid rgba(13, 110, 253, 0.4);

    outline-offset: 3px;

    border-radius: 3px;

}

/* =========================================================
   GLOBAL SEARCH
========================================================= */

.nav-search {
    position: relative;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 420px;
    overflow-y: auto;

    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 14px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

    z-index: 1055;

    display: none;

    padding: 8px;
}

.global-search-results.show {
    display: block;
}

.global-search-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px;
    border-radius: 10px;

    text-decoration: none;
    color: inherit;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.global-search-item:hover {
    background: #f5f7fb;
    transform: translateX(2px);
}

.global-search-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;

    flex-shrink: 0;
}

.global-search-content {
    flex: 1;
    min-width: 0;
}

.global-search-title {
    font-size: 13px;
    font-weight: 600;
}

.global-search-description {
    font-size: 11px;
    color: #6c757d;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-arrow {
    color: #adb5bd;
    font-size: 20px;
}

.global-search-empty {
    padding: 25px 15px;

    text-align: center;

    color: #6c757d;

    font-size: 13px;
}

.global-search-empty i {
    display: block;

    font-size: 24px;

    margin-bottom: 8px;
}


/* =========================================================
   NOTIFICATION
========================================================= */

.notification-menu {
    width: 380px;
    padding: 0;

    border-radius: 14px;
    overflow: hidden;

    border: 1px solid #e9ecef;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 16px;
}

.notification-header span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 24px;
    height: 24px;

    padding: 0 7px;

    border-radius: 20px;

    background: #dc3545;
    color: #ffffff;

    font-size: 11px;
    font-weight: 600;
}

.notification-list {
    max-height: 420px;
    overflow-y: auto;
}

.notification-item {
    display: flex !important;

    align-items: flex-start;

    gap: 12px;

    padding: 13px 16px !important;

    white-space: normal;

    transition:
        background 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f8f9fa;

    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;

    margin-bottom: 3px;
}

.notification-text {
    font-size: 11px;
    color: #6c757d;

    line-height: 1.5;
}

.notification-empty {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 22px 16px;
}

.notification-empty i {
    font-size: 30px;
    color: #198754;
}

.notification-empty strong {
    display: block;

    font-size: 13px;
}

.notification-empty small {
    display: block;

    color: #6c757d;

    margin-top: 3px;
}

/* =========================================================
   NOTIFICATION BADGE
========================================================= */

.nav-icon-btn {
    position: relative;
}

.notification-badge {
    position: absolute;

    top: -6px;
    right: -6px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #dc3545;
    color: #ffffff;

    border-radius: 50px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    border: 2px solid #ffffff;

    pointer-events: none;

    z-index: 2;
}

.nav-search {
    position: relative;
}

.global-search-results {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 380px;
    max-height: 420px;

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #e9ecef;
    border-radius: 14px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

    z-index: 9999;

    display: none;

    padding: 8px;
}

.global-search-results.show {
    display: block;
}