/** STYLE CSS TAMBAHAN */

/* WARNA SIDEBAR (tema uiux) - override khusus .sidebar, sengaja tidak
   mengganti hex #2d353c/#242a31/#1a2229 dkk secara global di style.min.css
   karena warna-warna itu juga dipakai luas oleh komponen lain yang tidak
   terkait sidebar (datepicker, notifikasi gritter, fullcalendar, validasi
   form, dll) - mengganti global akan ikut mengubah komponen-komponen itu. */
.sidebar,
.sidebar-bg {
    background: #14746c !important;
}
.sidebar .nav > li.active > a,
.sidebar .nav > li.active > a:focus,
.sidebar .nav > li.active > a:hover {
    background: #106057 !important;
}
.sidebar .nav > li.nav-profile {
    background: #0c4a43 !important;
}
.sidebar .nav > li > a .badge {
    background: #0c4a43 !important;
}
.sidebar-minify-btn {
    background: #0c4a43 !important;
}
.sidebar-minify-btn:hover,
.sidebar-minify-btn:focus {
    background: #1f8a7e !important;
}
.sidebar .sub-menu > li:after,
.sidebar .sub-menu > li.has-sub > a:before,
.sidebar .sub-menu > li > a:after {
    background: #106057 !important;
}
.sidebar .nav li.has-sub > .sub-menu {
    background: #106057 !important;
}
/* Teks default sidebar (#a8acb1) kontrasnya kurang di atas background
   teal yang lebih terang - naikkan ke putih-lembut supaya gampang dibaca. */
.sidebar .nav > li > a,
.sidebar .sub-menu > li > a {
    color: #eafaf8 !important;
}
.sidebar .nav > li.nav-header {
    color: #b9e4df !important;
}
.sidebar .nav > li > a:hover,
.sidebar .sub-menu > li > a:hover {
    color: #fff !important;
}
/* END WARNA SIDEBAR */

/* WARNA CARD-HEADER (tema uiux, halaman internal) - class ".card-header
   bg-black" dipakai luas di halaman accordion internal (mis. Monitoring
   Paket Pengadaan: Header, Detail Items, Dokumen, dst), ".panel-heading
   bg-black" dipakai di panel dashboard (mis. Dashboard Vendor: Tipe Vendor,
   DRT/Non DRT, dst), dan ".panel-inverse>.panel-heading" (mis. "Detail
   DRT/Non DRT per Company" - panel draggable/sortable) yang warna gelapnya
   didefinisikan terpisah (#242a30/#2A2A2A), bukan lewat class "bg-black".
   Ganti semua jadi gradient teal diagonal yang sama dengan label
   "Pengumuman" (running text) + teks putih biar kontras & senada. */
.card-header.bg-black,
.card-header.bg-black.text-white,
.panel-heading.bg-black,
.panel-heading.bg-black.text-white,
.panel-inverse > .panel-heading {
    background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
    border: none !important;
    color: #fff !important;
}
.card-header.bg-black > a,
.card-header.bg-black > i,
.card-header.bg-black .card-title,
.panel-heading.bg-black > a,
.panel-heading.bg-black .panel-title,
.panel-inverse > .panel-heading .panel-title {
    color: #fff !important;
}

.header {
    position: fixed;
}
.panel {
    box-shadow: 0.5px 0.5px 0.3em rgba(0,0,0,0.2);
}
.sidebar {
    padding-top: 0px;
}
.content {
    padding-bottom: 60px !important;
}

/* CUSTOM BOOSTRAP 4 */
.form-control, .btn {
    border-radius: 20px;
}
.form-control.datepicker {
    border-radius: 20px !important;
    padding: 10px;
}
.btn:hover {
    transform: scale(1.05);
}
.btn:active {
    transform: scale(0.95);
}
/* END CUSTOM BOOSTRAP 4 */

/* CUSTOM SELECT 2 */
.selection .select2-selection {
    border-radius: 20px !important;
}
/* END CUSTOM SELECT 2 */

/* CUSTOM BOOTBOX */
.modal-dialog .modal-content{
    border-radius: 20px;
}
/* END CUSTOM BOOTBOX */

/* GLOBAL */
/* Base header styles */
.header, .sidebar, .float-sub-menu, .float-sub-menu-container, .sidebar-scrollable li a, .card #filter {
    transition: all 0.3s ease-in-out;
}
#header, #sidebar,
.sidebar-scrollable li a:first-child:hover, 
.float-sub-menu li a:first-child:hover,
.float-sub-menu-container {
    box-shadow: 1px 1px 0.5em rgba(0,0,0,0.2);
}

.header, .navbar-right li a, 
.sidebar-scrollable li a:first-child, 
.float-sub-menu li a:first-child {
    border-radius: 20px;
}

/* Desktop mode (default) */
@media (min-width: 768px) {
    .header {
        right: 30px;
        left: auto;
        width: auto;
        max-width: fit-content;
        margin: 10px;
    }
}

/* Mobile mode */
@media (max-width: 767px) {
    .header {
        right: 0px;
        border-radius: 0px;
    }
    .sidebar {
        z-index: 1010;
    }
}
/* END GLOBAL */

/* SIDEBAR */
.sidebar_application_name {
	color: #a8acb1;
}

/* Sidebar dan float sub menu container  */
.sidebar, .float-sub-menu-container {
    border-radius: 0px 20px 20px 0px;
}

/* Sidebar wrapper */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Prevent double scroll */
}

/* Konten yang bisa di-scroll */
.sidebar .sidebar-scrollable {
    padding-bottom: 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hover setiap menu dan sub menu */
a[href]:hover, button:hover {
    transform: scale(1.05) !important;
}
a[href]:active, button:active {
    transform: scale(0.95) !important;
}
/* END Hover setiap menu dan sub menu */
/* .sidebar-scrollable li a:first-child:hover, .float-sub-menu li a:first-child:hover, .scroll-top-btn:hover, .chat-bot-btn:hover  {
    transform: scale(1.05);
} */
/* .sidebar-scrollable li a:first-child:active, .float-sub-menu li a:first-child:active, .scroll-top-btn:active, .chat-bot-btn:active  {
    transform: scale(0.95);
} */

/* Header sidebar - FIXED/STICKY di atas */
.sidebar-header {
    flex-shrink: 0; /* Tidak ikut shrink */
    background: inherit;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
/* END SIDEBAR */

/* FLOAT SUB MENU SIDEBAR */
.float-sub-menu-container {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Scroll yang cantik */
.float-sub-menu-container::-webkit-scrollbar {
    width: 6px;
}

.float-sub-menu-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.float-sub-menu-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}
/* END FLOAT SUB MENU SIDEBAR */

/* SPOTLIGHT */
/* Styling spotlight modal lebih menarik */
#spotlightModal .modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

#spotlightModal .list-group-item {
    border-left: none;
    border-right: none;
    padding: 12px 20px;
    transition: all 0.2s;
}

#spotlightModal .list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 28px;
}

#spotlight_input:focus {
    box-shadow: none;
    outline: none;
}
/* END SPOTLIGHT */

/* HEADER */
.header-nav-bar-wrapper {
    position: fixed; /* default, akan di-override JS */
    transition: top 0.2s ease; /* animasi halus */
    top: 0px;
    right: 0px;
}
/* END HEADER */

/* FLOAT BOTTOM BUTTON */
.float-bottom-button {
    bottom: 20px;
    right: 20px;
    z-index: 1010;
    border: none;
}
/* Wadah memakai .fixed-bottom (selebar layar) — tanpa ini area kosongnya menutupi
   tombol di bagian bawah halaman (mis. bar aksi menempel di konfig PP) sehingga tidak bisa diklik. */
.float-bottom-button { pointer-events: none; }
.float-bottom-button > * { pointer-events: auto; }
/* END FLOAT BOTTOM BUTTON */

/* CHAT BOT */
/* CHAT BOT BUTTON & POPUP */
.chat-bot-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #14b8a6;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
}
/* .chat-bot-btn:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
} */
/* Sembunyikan ikon close secara default */
.chat-bot-btn .close-icon {
    display: none;
}
/* Saat popup aktif, ganti ikon */
.chat-bot-btn.active .fa-question-circle {
    display: none;
}
.chat-bot-btn.active .close-icon {
    display: inline-block;
}

/* STYLE UNTUK POPUP CHAT */
.chat-popup {
    position: fixed;
    bottom: 80px; /* Posisi tepat di atas tombol */
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: none; /* Awalnya disembunyikan */
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    animation: slideUp 0.3s ease-out; /* Animasi muncul */
}
.chat-popup.show {
    display: flex; /* Tampilkan saat ditambahkan kelas 'show' */
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HEADER POPUP */
.chat-popup-header {
    background: #2d353c;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.close-chat-btn:hover {
    opacity: 1;
}

/* ISI PERCAKAPAN DI DALAM POPUP */
.chat-popup-body {
    flex: 1;
    background: #f1f5f9;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-msg-bot {
    align-self: flex-start;
    background: #fff;
    color: #2d353c;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.chat-msg-bot p:last-child {
    margin-bottom: 0;
}
.chat-msg-user {
    align-self: flex-end;
    background: #14b8a6;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-bot .chat-faq-title {
    font-weight: 600;
    margin-bottom: 4px;
}
.chat-msg-bot .chat-faq-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
}
.chat-popup-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #e5e9ec;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.chat-popup-input #chat_input {
    flex: 1;
    border-radius: 20px;
    font-size: 13px;
}
.chat-popup-input button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #14b8a6;
    color: #fff;
    border: none;
    flex-shrink: 0;
}
/* Isi FAQ (HTML dari database) tidak boleh melebar keluar gelembung chat */
.chat-popup-body {
    overflow-x: hidden;
}
.chat-msg {
    min-width: 0;
    overflow-wrap: anywhere;
}
.chat-msg img,
.chat-msg iframe,
.chat-msg video {
    max-width: 100%;
    height: auto;
}
.chat-msg table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}
/* Warna & aksen chatbot: header = gradient teal + teks putih (sama dengan card-header
   internal), latar teal muda, bubble user teal muda. Header chatbot E-Catalog
   (catalog_uiux.css, --uc-header-gradient) memakai warna yang sama. */
.chat-bot-btn {
    background: #14b8a6;
    box-shadow: 0 4px 14px rgba(15, 118, 110, .35);
    transition: transform .2s ease, background .2s ease;
}
.chat-bot-btn:hover,
.chat-bot-btn.active {
    background: #0f766e;
}
.chat-popup {
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -12px rgba(15, 118, 110, .35);
}
.chat-popup-header {
    /* sama dengan card-header / label "Pengumuman" */
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
}
.chat-popup-header > span::before {
    content: "\f059"; /* fa-question-circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}
.close-chat-btn {
    color: #fff;
    opacity: .8;
}
.chat-popup-body {
    background: #f0fdfa;
}
.chat-msg-bot {
    color: #1e293b;
    border: 1px solid #ccfbf1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
}
.chat-msg-bot .chat-faq-title {
    color: #065f56;
}
.chat-msg-bot .chat-faq-link {
    color: #0f766e;
    font-weight: 600;
}
.chat-msg-user {
    background: linear-gradient(135deg, #67e8e4 0%, #14b8a6 55%, #065f56 100%);
    color: #000;
}
.chat-msg ol,
.chat-msg ul {
    padding-left: 18px;
}
.chat-popup-input {
    border-top-color: #e2e8f0;
}
.chat-popup-input #chat_input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .2);
}
.chat-popup-input button {
    transition: background .2s, transform .15s;
}
.chat-popup-input button:hover {
    background: #0f766e;
    transform: scale(1.05);
}
/* END CHAT BOT */

/* SCROLL TOP */
.scroll-top-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #14b8a6;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    visibility: hidden;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* .scroll-top-btn:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
} */
/* END SCROLL TOP */

/* PAGE LOADING BAR (dikendalikan PageProgress di apps_main.js) */
.page-loading-bar {
    --plb-value: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease .15s;
}
.page-loading-bar.is-active {
    opacity: 1;
    transition-delay: 0s;
}
.page-loading-bar.is-done {
    opacity: 0;
    transition-delay: .2s;
}
.page-loading-bar .plb-fill {
    position: relative;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(var(--plb-value));
    background: linear-gradient(90deg, #0d9488, #14b8a6 60%, #5eead4);
    box-shadow: 0 0 8px rgba(20, 184, 166, .6);
    transition: transform .3s ease-out;
}
.page-loading-bar.no-transition .plb-fill {
    transition: none;
}
/* Kilau yang berjalan di ujung bar selama loading */
.page-loading-bar.is-active .plb-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7));
    animation: plbShimmer 1.2s ease-in-out infinite;
}
@keyframes plbShimmer {
    0%, 100% { opacity: .2; }
    50%      { opacity: 1; }
}
/* END PAGE LOADING BAR */

/* TOAST NOTIFICATION (jQuery Growl, markup & posisi top di apps_main.js) */
#growls.default,
#growls.tr {
    top: 16px;
    right: 16px;
}
#growls .growl {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 380px;
    max-width: calc(100vw - 32px);
    margin: 0 0 10px auto;
    padding: 14px 14px 17px 14px;
    overflow: hidden;
    opacity: 1;
    filter: none;
    color: #fff;
    background: linear-gradient(135deg, var(--growl-bg-1), var(--growl-bg-2));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 14px 34px -10px var(--growl-glow), 0 3px 8px rgba(15, 23, 42, .18);
    font-size: 13px;
    line-height: 1.45;
    cursor: default;
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.2);
    --growl-bg-1: #475569;
    --growl-bg-2: #334155;
    --growl-glow: rgba(51, 65, 85, .55);
}
#growls .growl.growl-incoming,
#growls .growl.growl-outgoing {
    opacity: 0;
    transform: translateX(110%);
}
#growls .growl.growl-error   { --growl-bg-1: #ef4444; --growl-bg-2: #b91c1c; --growl-glow: rgba(220, 38, 38, .55); }
#growls .growl.growl-notice  { --growl-bg-1: #14b8a6; --growl-bg-2: #0f766e; --growl-glow: rgba(13, 148, 136, .55); }
#growls .growl.growl-warning { --growl-bg-1: #f59e0b; --growl-bg-2: #c2410c; --growl-glow: rgba(217, 119, 6, .55); }
#growls .growl.growl-default { --growl-bg-1: #3b82f6; --growl-bg-2: #1d4ed8; --growl-glow: rgba(37, 99, 235, .55); }

/* Ikon berdenyut saat muncul agar menarik perhatian */
#growls .growl .growl-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: rgba(255, 255, 255, .22);
    animation: growlPulse 1.4s ease-out .2s 2;
}
@keyframes growlPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
    100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}
#growls .growl .growl-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 1px;
}
#growls .growl .growl-title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}
#growls .growl .growl-message {
    color: rgba(255, 255, 255, .92);
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-height: 40vh;
    overflow-y: auto;
}
#growls .growl .growl-close {
    flex: 0 0 auto;
    float: none;
    width: 26px;
    height: 26px;
    margin: -4px -4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
#growls .growl .growl-close:hover,
#growls .growl .growl-close:focus {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    outline: none;
}
/* Bar hitung mundur; berhenti (penuh lagi) saat kursor di atas toast */
#growls .growl .growl-timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, .7);
    transform-origin: left center;
    animation: growlTimer var(--growl-duration, 5000ms) linear forwards;
}
#growls .growl:hover .growl-timer {
    animation: none;
}
@keyframes growlTimer {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
@media (max-width: 767px) {
    #growls.default,
    #growls.tr {
        top: 12px;
        right: 12px;
        left: 12px;
    }
    #growls .growl {
        width: auto;
        max-width: none;
    }
}
/* END TOAST NOTIFICATION */

/* SPINNER GROW */
.loading-grow {
    animation: customGrow 1s ease-in-out infinite;
}

@keyframes customGrow {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}
/* END SPINNER GROW */

/* TABLE ROW CONTENT */
table tbody tr:hover {
    background: rgb(217, 224, 231, 0.4);
}
/* END TABLE ROW CONTENT */

/* END TAMBAHAN */
/* ================================================================== */
/* MY TASKS (tema uiux) - dashboard/task/partials/my_tasks_uiux.php     */
/* Tile tetap seperti semula (.widget-stats.bg-gradient-teal), ditambah */
/* info "lewat batas" per tile dan efek ditekan saat hover.            */
/* ================================================================== */
/* Tile: seluruh kotak bisa diklik + efek ditekan */
.mytask-tile,
.mytask-tile:hover,
.mytask-tile:focus {
    display: block;
    color: inherit;
    text-decoration: none;
}
.mytask-tile .widget-stats {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.mytask-tile:hover .widget-stats,
.mytask-tile:focus-visible .widget-stats {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 24px rgba(15, 118, 110, .30);
    filter: brightness(1.05);
}
.mytask-tile:active .widget-stats {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 12px rgba(15, 118, 110, .25);
    filter: brightness(1);
}
.mytask-tile:focus-visible {
    outline: 3px solid #0f766e;
    outline-offset: 2px;
    border-radius: 4px;
}
.mytask-tile-lewat {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}
.mytask-tile-lewat.is-aman {
    font-weight: 400;
    opacity: .85;
}

/* ================================================================== */
/* KONTRAS WARNA (tema uiux, internal)                                  */
/* Teks putih di atas warna terang (teal #14b8a6, success #10b981,      */
/* info #38bdf8, warning #f59e0b) kontrasnya cuma 2,1-2,5:1, di bawah   */
/* standar WCAG AA 4,5:1. Untuk elemen BERTEKS PUTIH dipakai varian     */
/* lebih gelap (semua >= 4,8:1). Warna terang tetap dipakai untuk       */
/* gradient berteks hitam, border, dan aksen.                           */
/*   primary #0f766e (5,5)  hover #115e59 (7,6)                         */
/*   success #047857 (5,5)  hover #065f46 (7,7)                         */
/*   info    #0369a1 (5,9)  hover #075985 (7,6)                         */
/*   warning #b45309 (5,0)  hover #92400e (7,1)                         */
/*   danger  #dc2626 (4,8)  hover #b91c1c (6,5)                         */
/* ================================================================== */
.btn.btn-primary, .btn.btn-primary:focus, .btn.btn-primary.disabled, .btn.btn-primary[disabled] { background: #0f766e; border-color: #0f766e; color: #fff; }
.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary.active, .open > .dropdown-toggle.btn-primary { background: #115e59; border-color: #115e59; color: #fff; }
.btn.btn-success, .btn.btn-success:focus, .btn.btn-success.disabled, .btn.btn-success[disabled] { background: #047857; border-color: #047857; color: #fff; }
.btn.btn-success:hover, .btn.btn-success:active, .btn.btn-success.active, .open > .dropdown-toggle.btn-success { background: #065f46; border-color: #065f46; color: #fff; }
.btn.btn-info, .btn.btn-info:focus, .btn.btn-info.disabled, .btn.btn-info[disabled] { background: #0369a1; border-color: #0369a1; color: #fff; }
.btn.btn-info:hover, .btn.btn-info:active, .btn.btn-info.active, .open > .dropdown-toggle.btn-info { background: #075985; border-color: #075985; color: #fff; }
.btn.btn-warning, .btn.btn-warning:focus, .btn.btn-warning.disabled, .btn.btn-warning[disabled] { background: #b45309; border-color: #b45309; color: #fff; }
.btn.btn-warning:hover, .btn.btn-warning:active, .btn.btn-warning.active, .open > .dropdown-toggle.btn-warning { background: #92400e; border-color: #92400e; color: #fff; }
.btn.btn-danger, .btn.btn-danger:focus, .btn.btn-danger.disabled, .btn.btn-danger[disabled] { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.btn-danger:hover, .btn.btn-danger:active, .btn.btn-danger.active, .open > .dropdown-toggle.btn-danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.label.label-primary, .badge.badge-primary, .bg-primary.text-white { background: #0f766e !important; }
.label.label-success, .badge.badge-success, .label.label-teal { background: #047857; }
.label.label-info, .badge.badge-info { background: #0369a1; }
.label.label-warning, .badge.badge-warning { background: #b45309; }
.label.label-danger, .badge.badge-danger { background: #dc2626; }


/* Tombol bulat ikon putih (scroll-top & chatbot): ikon butuh >= 3:1 */
.scroll-top-btn,
.chat-bot-btn,
.chat-popup-input button {
    background: #0f766e;
}
.chat-bot-btn:hover,
.chat-bot-btn.active,
.chat-popup-input button:hover {
    background: #115e59;
}
/* Bubble pesan user: gradient berteks hitam -> ujung kanan gelap (2,8:1) */
.chat-msg-user {
    background: #ccfbf1;
    color: #134e4a;
    border: 1px solid #99f6e4;
}

/* Chatbot: tombol pilihan (Ajukan / Tidak usah), 👍/👎, pertanyaan cepat */
.chat-actions,
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.chat-action-btn,
.chat-suggestion {
    padding: 5px 12px;
    border: 1px solid #99f6e4;
    border-radius: 16px;
    background: #fff;
    color: #115e59;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.chat-action-btn:hover,
.chat-suggestion:hover {
    background: #f0fdfa;
    border-color: #0f766e;
}
.chat-action-btn.is-primary {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}
.chat-action-btn.is-primary:hover {
    background: #115e59;
}
.chat-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #ccfbf1;
    font-size: 12px;
    color: #475569;
}
.chat-feedback-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.chat-feedback-btn[data-membantu="1"]:hover { color: #047857; border-color: #047857; }
.chat-feedback-btn[data-membantu="0"]:hover { color: #b91c1c; border-color: #b91c1c; }
.chat-feedback-thanks { color: #047857; }

/* ALERT / FLASH MESSAGE (tema uiux) - restyle .alert bootstrap yang dipakai
   layouts/partials/message.php & validation.php (dan alert lain di halaman
   internal) jadi kartu lembut: aksen kiri, ikon dalam lingkaran, judul tegas,
   isi lebih kalem, tombol tutup halus. Markup tidak diubah biar tema default
   tetap sama. */
.alert {
    position: relative;
    display: block;
    padding: 14px 44px 14px 64px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    font-size: 13px;
    line-height: 1.55;
    animation: uiux-alert-in .3s ease-out;
}
.alert h4 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: inherit;
}
.alert h4:only-child {
    margin-bottom: 0;
}
.alert h4 > .icon,
.alert > .icon {
    position: absolute;
    left: 16px;
    top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin: 0;
}
.alert h4 > .icon.fa-ban:before {
    content: "\f071"; /* fa-exclamation-triangle, lebih ramah dari tanda larangan */
}
.alert ul,
.alert ol {
    margin: 4px 0 0;
    padding-left: 18px;
}
.alert p:last-child {
    margin-bottom: 0;
}
.alert .close,
.alert-dismissible .close {
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    text-align: center;
    color: inherit;
    text-shadow: none;
    opacity: .45;
    transition: opacity .15s ease, background .15s ease;
}
.alert .close:hover,
.alert .close:focus {
    opacity: 1;
    background: rgba(15, 23, 42, .06);
    outline: none;
}
.alert-success {
    background: #f0fdf9 !important;
    border-color: #ccfbf1 !important;
    border-left-color: #14b8a6 !important;
    color: #115e59 !important;
}
.alert-success .icon { background: #ccfbf1; color: #0f766e; }
.alert-danger {
    background: #fef2f2 !important;
    border-color: #fee2e2 !important;
    border-left-color: #ef4444 !important;
    color: #991b1b !important;
}
.alert-danger h4 { color: #7f1d1d; }
.alert-danger .icon { background: #fee2e2; color: #dc2626; }
.alert-warning {
    background: #fffbeb !important;
    border-color: #fef3c7 !important;
    border-left-color: #f59e0b !important;
    color: #92400e !important;
}
.alert-warning .icon { background: #fef3c7; color: #d97706; }
.alert-info {
    background: #f0f9ff !important;
    border-color: #e0f2fe !important;
    border-left-color: #0ea5e9 !important;
    color: #075985 !important;
}
.alert-info .icon { background: #e0f2fe; color: #0284c7; }
.alert:not(:has(.icon)) {
    padding-left: 18px;
}
@keyframes uiux-alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .alert { animation: none; }
}
/* END ALERT */
