﻿/*:root {*/
    /* text Color: status kolom tabel; clicked kolom tabel; */
    /*--color-primary-pdj: #1E3A6A;*/
    /* Color table td: nonaktif */
    /*--color-nonaktif-pdj: #f087874d;*/
    /* Color table td: clicked */
    /*--color-clicked-tabel-pdj: #f8fab4;*/
    /* Color table td: hover */
    /*--color-hover-table-pdj: #c5d8fd1a;*/
    /* pagination; thead; open dropdown; numeric up/down; chip; tabview; custom-file-input:file-selector-button; */
    /* bg-gradient-dark: button batal */
    /*--gradient-primary-pdj: linear-gradient(195deg, #1E3A6A 0%, #274370 100%);*/
    /* bg-gradient-warning: button perbarui */
    /*--gradient-edit-pdj: linear-gradient(195deg, #EF7722 0%, #F97A00 100%);*/
    /* rz-form-field-content; custom-form-highlight */
    /*--border-primary-pdj: 1px solid #1E3A6A;*/
    /* custom-form-status-highlight */
    /*--border2-primary-pdj: 2px solid #1E3A6A;*/
    /* custom-form-highlight:focus */
    /*--border-color-primary-pdj: #0d47a1;*/
    /* radio; checkbox; */
    /*--border2-color-primary-pdj: #0a2e5c;*/
    /* .rz-radiobutton-box */
    /*--border3-color-primary-pdj: #0a2e5c99;*/
    /* checkbox active:hover */
    /*--border4-color-primary-pdj: #36527c;
}*/

/* Scroll Chat Load More */
#chatContainer {
    overflow-anchor: auto !important;
}
#btn-load-more {
    overflow-anchor: none;
}

/* Sidebar */
#sidenav-main {
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}
#sidenav-main.hidden {
    transform: translateX(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
#sidenav-main.visible {
    transform: translateX(0) !important;
    opacity: 1 !important;
}
.sidenav {
    width: 250px !important;
}
.sidebar-close-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: transform 0.25s ease-in-out, opacity 0.2s ease;
}
.sidebar-close-icon:hover {
    transform: rotate(90deg);
    opacity: 1;
}

/* RadzenPanelMenu (Sidebar) */
.rz-panel-menu {
    background-color: transparent !important;
    padding: 0 !important;
    color: #262626;
    font-size: 12px;
}
.rz-panel-menu .rz-navigation-item-wrapper {
    line-height: 0.5rem !important;
}
.rz-panel-menu .rz-navigation-item {
    border-block-end: 0 !important;
}
.rz-panel-menu .rz-navigation-item-wrapper:hover {
    background-color: rgba(38, 38, 38, 0.1);
    color: #262626;
}

/* Pagination */
.dxbl-pager button.dxbl-pager-page-btn.dxbl-pager-active-page-btn {
    background-image: var(--gradient-primary-pdj) !important;
    color: white !important;
}
.pagination-fixed {
    position: fixed;
    bottom: 0;
    left: 265px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-top: 1px solid #dee2e6;
    z-index: 1030;
    padding: 10px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Row table */
.rz-grid-table.rz-grid-table-fixed.rz-grid-table-striped tbody tr {
    cursor: pointer;
}
.rz-grid-table.rz-grid-table-fixed.rz-grid-table-striped tbody tr:hover {
/*    background-color: rgba(197, 216, 253, 0.1) !important;*/
    background-color: var(--color-hover-table-pdj) !important;
}

/* Thead table Radzen */
.rz-grid-table thead tr th {
    background-image: var(--gradient-primary-pdj);
}

.rz-column-title-content {
    color: white;
    margin: auto;
}

/* Background Column Status */
.status-column-background > td {
    background-color: var(--color-nonaktif-pdj) !important;
}
tr.status-column-background td {
    background-color: var(--color-nonaktif-pdj) !important;
}
.status-column-background .rz-cell-data {
    color: var(--color-primary-pdj) !important;
}

/* Backgorund Clicked Colum */
.clicked-column-background > td {
    background-color: var(--color-clicked-tabel-pdj) !important;
}
.clicked-column-background .rz-cell-data {
    color: var(--color-primary-pdj) !important;
}


/* Dialog Service Confirmation */
/* Delete Button */
.rz-dialog-confirm-buttons button.rz-button.rz-primary.rz-shade-default {
    background-image: linear-gradient(195deg, #1E3A6A 0%, #274370 100%) !important;
    color: white;
}

/* Cancel Button */
.rz-dialog-confirm-buttons button.rz-button.rz-base.rz-shade-default {
    background-image: linear-gradient(195deg, #42424a 0%, #191919 100%) !important;
    color: white;
}

/* Searching & Filtering */
.status-select custom-filter-highlight {
    width: 10rem;
}
.search-name {
    width: 15rem;
}
.search-media {
    width: 10rem !important;
}
.search-number {
    width: 7rem;
}

/* Formfield floating */
.rz-form-field-label {
    color: #42424a !important;
}
.rz-form-field.rz-variant-outlined.rz-state-focused .rz-form-field-label {
    color: #42424a !important;
}

/* Formfield Drowdown */
.rz-dropdown-items li:hover, .rz-dropdown-item:hover, .rz-multiselect-items li:hover {
    background-image: var(--gradient-primary-pdj);
}
.rz-dropdown-items li.rz-state-highlight, .rz-dropdown-item.rz-state-highlight, .rz-multiselect-items li.rz-state-highlight, .rz-multiselect-items.rz-state-highlight {
    background-image: var(--gradient-primary-pdj);
}

/* Formfield Numeric btn up down */
.rz-numeric-button.rz-numeric-up.rz-button {
    background-image: var(--gradient-primary-pdj);
}
.rz-numeric-button.rz-numeric-down.rz-button {
    background-image: var(--gradient-primary-pdj);
}

/* Radzen Chip Dropdown multiple selected */
.rz-chip, .rz-chip button {
    background-image: var(--gradient-primary-pdj);
    width: fit-content !important;
}
.rz-chip-text, .rz-chip button i {
    color: white;
}
.rz-chip button:hover {
    background-image: linear-gradient(195deg, #EBEFF4 0%, #CED4DA 100%);
}
.rz-chip button i:hover {
    color: black;
}

.rz-dialog-confirm-buttons .rz-button.rz-primary.rz-shade-default {
    background-image: linear-gradient(195deg, #EC407A 0%, #D81B60 100%) !important;
}

/*    background-image: linear-gradient(195deg, #42424a 0%, #191919 100%);*/
.bg-gradient-dark {
    background-image: var(--gradient-primary-pdj) !important;
}

.bg-gradient-warning {
    background-image: var(--gradient-edit-pdj) !important;
}

/* Radzen Tabview */
.rz-tabview-nav li {
    padding: 0 !important;
    margin: 0 !important;
    color: #1E3A6A !important;
}
.rz-tabview-selected.rz-state-focused {
    background-image: var(--gradient-primary-pdj) !important;
    color: white !important;
}
ul[role=tablist] {
    flex-wrap: wrap;
}

/* Notification Radzen */
.rz-notification {
    top: 0px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99999 !important;
}
/* SUCCESS */
.rz-notification-success .rz-notification-item, .rz-notification-success .rz-notification-item .rz-notification-icon {
/*    background-color: rgb(219.2, 239, 220) !important;
    color: rgb(30.4, 70, 32) !important;*/
    background-color: var(--bg-notification-success-pdj) !important;
    color: var(--color-notification-success-pdj) !important;
}

/* INFO */
.rz-notification-info .rz-notification-item, .rz-notification-info .rz-notification-item .rz-notification-icon {
/*    background-color: rgb(209.2, 227, 250.4) !important;
    color: rgb(10.4, 46, 92.8) !important;*/
    background-color: var(--bg-notification-info-pdj) !important;
    color: var(--color-notification-info-pdj) !important;
}

/* WARNING */
.rz-notification-warn .rz-notification-item, .rz-notification-warn .rz-notification-item .rz-notification-icon {
/*    background-color: rgb(254.2, 232, 204) !important;
    color: rgb(100.4, 56, 0) !important;*/
    background-color: var(--bg-notification-warn-pdj) !important;
    color: var(--color-notification-warn-pdj) !important;
}
.rz-badge-warning.rz-shade-default {
    background-color: rgb(254.2, 232, 204) !important;
    color: rgb(100.4, 56, 0) !important;
}

/* ERROR */
.rz-notification-error .rz-notification-item, .rz-notification-error .rz-notification-item .rz-notification-icon {
/*    background-color: rgb(252.8, 217.4, 214.6) !important;
    color: rgb(97.6, 26.8, 21.2) !important;*/
    background-color: var(--bg-notification-error-pdj) !important;
    color: var(--color-notification-error-pdj) !important;
}

/* Display Komentar */
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}
.comment-replies {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid #efefef;
}

/* InputFile */
.custom-file-input {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    cursor: pointer;
}
.custom-file-input:focus {
    border-color: rgb(209.2, 227, 250.4);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(209.2, 227, 250.4);
}
.custom-file-input::file-selector-button {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin: -0.375rem 0.75rem -0.375rem -0.75rem;
    -webkit-margin-end: 0.75rem;
    margin-inline-end: 0.75rem;
    color: #fff;
    background-image: var(--gradient-primary-pdj);
    border: 0 solid;
    border-right-width: 1px;
    border-radius: 0.25rem 0 0 0.25rem;
    cursor: pointer;
    transition: all .2s ease-in-out;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.5;
}
.custom-file-input:hover::file-selector-button {
    opacity: 0.9;
}

/* Custom Status Form Field */
.custom-form-status-highlight {
    border: var(--border2-primary-pdj) !important;
    background-color: #fff8e1 !important;
    transition: all .3s ease-in-out;
}

/* Custom Color Form Field */
.rz-form-field-content {
    border: var(--border-primary-pdj) !important;
    border-block-end: none;
    transition: all .3s ease-in-out;
}
/*.custom-filter-highlight {
    border: var(--border-primary-pdj) !important;
    transition: all .3s ease-in-out;
}
.custom-filter-highlight:focus {
    border-color: var(--border-color-primary-pdj) !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2) !important;
}*/
.custom-form-highlight {
    border: var(--border-primary-pdj) !important;
    transition: all .3s ease-in-out;
}
.custom-form-highlight:focus {
    border-color: var(--border-color-primary-pdj) !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2) !important;
}
.custom-form-checkbox-highlight {
    accent-color: var(--border2-color-primary-pdj);
}

.rz-radiobutton-box {
    border-color: var(--border3-color-primary-pdj) !important;
}
.rz-radiobutton-box.rz-state-active {
    border: 2px solid;
    background-color: var(--border2-color-primary-pdj) !important;
    border-color: var(--border2-color-primary-pdj) !important;
    border-color: var(--border2-color-primary-pdj) !important;
}
.rz-chkbox-box {
    border: 2px solid;
    border-color: var(--border2-color-primary-pdj) !important;
}
.rz-chkbox-box.rz-state-active {
    background-color: var(--border2-color-primary-pdj) !important;
}
.rz-chkbox-box.rz-state-active:hover {
    background-color: var(--border4-color-primary-pdj) !important;
}

/* Fitur perbesar Image */
.image-preview {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.image-preview:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
}
.image-preview:hover::after {
    content: "Klik untuk memperbesar";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px;
    font-size: 11px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(3px);
}
.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}
.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    background: white;
    padding: 10px;
}
.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.image-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}
.image-modal-info {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat custom scrollbar */
.chat-bubble-me {
    background-color: #dcf8c6;
    color: #303030;
    border-radius: 12px 0px 12px 12px;
}
/* Styling Bubble Kiri (Lawan) */
.chat-bubble-other {
    background-color: #ffffff;
    color: #303030;
    border-radius: 0px 12px 12px 12px;
}
/* Background Chat */
.card-body::-webkit-scrollbar {
    width: 6px;
}
.card-body::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.sticky-date-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    z-index: 10;
    pointer-events: none;
}
.sticky-date-header .badge {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    opacity: 0.95;
}

/* Row table Chat */
.last-message-cell-primary {
    background-color: #E9F0FF;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #1E3A6A;
    line-height: 1.45;
    border-left: 4px solid #3B82F6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    max-width: 100%;
    white-space: normal;
}
.last-message-cell-secondary {
    background-color: #fff8ea;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #68541e;
    line-height: 1.45;
    border-left: 4px solid #f4b03a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    max-width: 100%;
    white-space: normal;
}
.last-message-date {
    background-color: #E8F0FE;
    color: #1E3A6A;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
    display: inline-block;
}

/* Tombol Icon unggah Message */
.btn-upload-icon {
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    padding-left: 3px;
    transition: all 0.2s ease-in-out;
}
.btn-upload-icon:hover {
    color: var(--bs-primary) !important;
    transform: scale(1.1);
}
.vertical-separator {
    width: 1px;
    height: 24px;
    background-color: #dee2e6;
    margin-left: 12px;
    margin-right: 2px;
}

/* Chat Bubble Right */
.bg-bubble-right {
    background-image: linear-gradient(195deg, #4CAF50 0%, #2E7D32 100%);
}
.text-bubble-right {
    color: white;
}

/* Dialog Page */
.rz-dialog {
    pointer-events: auto !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    border: none !important;
}
.rz-dialog-titlebar {
    pointer-events: auto !important;
    z-index: 20010 !important;
    position: relative !important;
}
.rz-dialog-titlebar-close {
    pointer-events: auto !important;
    cursor: pointer !important;
}
.rz-dialog-wrapper {
    pointer-events: none !important;

/*    backdrop-filter: blur(3px);*/
    z-index: 10001 !important;
}
.rz-dialog-content {
    pointer-events: auto !important;
}
.rz-dialog-mask {
/*    z-index: 10040 !important;
    background-color: transparent !important;*/

    background-color: rgba(0, 0, 0, 0.5) !important;
    pointer-events: auto !important;
}
.dialog-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    pointer-events: auto;
    box-shadow: none !important;
}
.dialog-full-screen .rz-dialog-content {
    height: calc(100vh - 55px) !important;
    overflow-y: auto !important;
    padding: 0 !important;
    background-color: #f8f9fa !important;
}
.dialog-confirm-top {
    z-index: 20000 !important;
    position: relative;
}
.rz-popup {
    z-index: 20000 !important;
}
.rz-tooltip {
    z-index: 20010 !important;
}

.ulasan-rating .rz-rating-cancel {
    display: none;
}
.ulasan-rating.rz-rating {
    font-size: 1.75rem !important;
}
.ulasan-rating.rz-rating .rzi-star-o {
    color: #1E3A6A !important;
}



/* Table Height ==> Virtual Scrolling */
/* Screen monitor */
.table-size-custom {
    height: 70vh;
    overflow-y: auto;
}

.form-size-custom {
    width: 50% !important;
    margin: auto;
}

/* Search & Filter */
.responsive-form-field {
    width: 100%;
    min-width: 200px;
    flex-grow: 1;
}
.responsive-button {
    width: 100%;
}

/* ButtonSearchFilter */
.filter-container-full {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}
.btn-filter-full {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    white-space: nowrap;
    min-width: 0;
}
.btn-label-responsive {
    display: none;
}

/* Button Checkbox status */
.action-button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}
.btn-grid-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    white-space: nowrap;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .responsive-form-field {
        width: auto;
        max-width: 250px;
    }

    .filter-container-full {
        width: auto;
    }

    .btn-filter-full {
        flex: initial;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .btn-label-responsive {
        display: inline;
        margin-left: 0.5rem;
    }

    .action-button-grid {
        display: flex;
        width: auto;
        gap: 0.75rem;
    }

    .btn-grid-item {
        width: auto;
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .btn-responsive-save {
        width: auto;
        min-width: 150px;
    }
}

@media (min-width: 576px) {
    .btn-responsive-filter {
        width: auto;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .responsive-button {
        width: auto;
    }

    .filter-button-container {
        gap: 0.75rem;
    }

    .btn-label {
        display: inline;
        margin-left: 0.5rem;
    }
}

/* Screen xxl */
@media (max-width: 1536px) {
    .table-size-custom {
        height: 65vh;
        overflow-y: auto;
    }

    .form-size-custom {
        width: 65% !important;
        margin: auto;
    }
}
/* Screen xl */
@media (max-width: 1280px) {
    .table-size-custom {
        height: 62vh;
        overflow-y: auto;
    }

    .form-size-custom {
        width: 70% !important;
        margin: auto;
    }
}
/* Screen lg */
@media (max-width: 1024px) {
    .table-size-custom {
        height: 62vh;
        overflow-y: auto;
    }

    .form-size-custom {
        width: 100% !important;
    }

    .pagination-fixed {
        left: 0;
        right: 0;
    }
}
/* Screen md */
@media (max-width: 768px) {
    .table-size-custom {
        height: 60vh;
        overflow-y: auto;
    }

    .form-size-custom {
        width: 100% !important;
    }

    .pagination-fixed {
        left: 0;
        right: 0;
    }
}
/* Screen sm */
@media (max-width: 640px) {
    .table-size-custom {
        height: 60vh;
        overflow-y: auto;
    }

    .form-size-custom {
        width: 100% !important;
    }

    .pagination-fixed {
        left: 0;
        right: 0;
    }
}
/* Screen xs */
@media (max-width: 425px) {
    .table-size-custom {
        height: 50vh;
        overflow-y: auto;
    }

    .form-size-custom {
        width: 100% !important;
    }

    .pagination-fixed {
        left: 0;
        right: 0;
    }
}
/* Screen xxs */
@media (max-width: 375px) {
    .table-size-custom {
        height: 43vh;
        overflow-y: auto;
    }

    .form-size-custom {
        width: 100% !important;
    }

    .pagination-fixed {
        left: 0;
        right: 0;
    }
}