:root {
  --primary-color: #071952;
  --biru: #081d63;
  --secondary-color: #088395;
  --third-color: #37B7C3;
  --background-color: #EBF4F6;
  --text-color: #999;
  --merah: #D71313;
  --merah-background: #d7131326;
  --card-border: #ddd;
  --hijau: #15803d;
  --hijau-background: #37b73727;
  --hijau-terang: #15803cb8;
}

* {
  scroll-behavior: smooth;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Asap', sarina;
}

/* Track (background jalur scroll) */
::-webkit-scrollbar-track {
  background: var(--primary-color);
  border-radius: 10px;
}

/* Thumb (yang digeser) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--secondary-color),
    var(--third-color)
  );
  border-radius: 10px;
  border: 3px solid var(--primary-color);
  transition: 0.3s ease;
}

/* Hover Effect */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--third-color),
    var(--secondary-color)
  );
}

/* ===== Support Firefox ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) var(--primary-color);
}

/* Animista Animation */
.slide-in-top {
	-webkit-animation: slide-in-top 1.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: slide-in-top 1.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.tracking-in-expand {
	-webkit-animation: tracking-in-expand 2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	        animation: tracking-in-expand 2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.fade-in {
	-webkit-animation: fade-in 1.5s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	        animation: fade-in 1.5s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

/* ----------------------------------------------
 * Generated by Animista on 2026-2-15 0:31:12
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-in-top
 * ----------------------------------------
 */
@-webkit-keyframes slide-in-top {
  0% {
    -webkit-transform: translateY(-1000px);
            transform: translateY(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-top {
  0% {
    -webkit-transform: translateY(-1000px);
            transform: translateY(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

/* ----------------------------------------------
 * Generated by Animista on 2026-2-15 0:33:54
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation tracking-in-expand
 * ----------------------------------------
 */
@-webkit-keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* ----------------------------------------------
 * Generated by Animista on 2026-2-15 0:36:48
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation fade-in
 * ----------------------------------------
 */
@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ===========================
   MODAL OVERLAY
=========================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===========================
   MODAL BOX
=========================== */

.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;

    transform: translateY(20px) scale(0.97);
    transition: all 0.25s ease;
}

/* Sizes */
.modal-box.small { max-width: 320px; }
.modal-box.medium { max-width: 480px; }
.modal-box.large { max-width: 600px; }

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    cursor: pointer;
    border: none;
    background: none;
    display: flex;
    align-items: center;
}

.modal-close .material-symbols-outlined {
    font-size: 1.4rem;
    color: #777;
}

/* ===========================
   BODY & ACTIONS
=========================== */

.modal-body {
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.modal-btn {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    flex: 1;
}

.modal-btn.cancel {
    background: #eee;
}

.modal-btn.confirm {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.modal-btn.confirm.danger{
    background: var(--merah);
    color:white;
}

.modal-btn.confirm.warning{
    background:#f59e0b;
    color:white;
}

.modal-btn.confirm.danger:hover {
    background: #b91010;
}

/* ===========================
   BOTTOM SHEET (MOBILE)
=========================== */

@media (max-width: 768px) {

    .modal-overlay {
        align-items: flex-end;
    }

    .modal-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal-box {
        transform: translateY(0);
    }
}

/* ==========================
   TOAST CONTAINER
========================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

/* ==========================
   TOAST CARD
========================== */

.toast {
    min-width: 260px;
    max-width: 320px;

    background: #fff;
    border-radius: 12px;
    padding: 0.8rem 1rem;

    display: flex;
    align-items: center;
    gap: 0.6rem;

    box-shadow: 0 8px 25px rgba(0,0,0,0.12);

    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* show animation */
.toast.show {
    transform: translateX(0);
    opacity: 1;
}

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

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon .material-symbols-outlined {
    font-size: 1.3rem;
}

/* ==========================
   MESSAGE
========================== */

.toast-message {
    flex: 1;
    font-size: 0.9rem;
}

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

.toast-close {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.toast-close .material-symbols-outlined {
    font-size: 1.1rem;
    color: #777;
}

/* ==========================
   TYPES
========================== */

.toast.success {
    border-left: 4px solid var(--hijau);
}

.toast.success .toast-icon {
    color: var(--hijau);
}

.toast.error {
    border-left: 4px solid var(--merah);
}

.toast.error .toast-icon {
    color: var(--merah);
}

.toast.warning {
    border-left: 4px solid orange;
}

.toast.warning .toast-icon {
    color: orange;
}

.toast.info {
    border-left: 4px solid var(--third-color);
}

.toast.info .toast-icon {
    color: var(--third-color);
}

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

@media (max-width:768px){

    .toast-container{
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 20px;
    }

    .toast{
        max-width: 100%;
        width: 100%;
        transform: translateY(120%);
    }

    .toast.show{
        transform: translateY(0);
    }

}