.toast-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: #ffffff;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    border-bottom-right-radius: 9px;
    border-bottom-left-radius: 9px;
    overflow: hidden;
    transform-origin: left center;
    animation: progress 3s linear forwards;
    pointer-events: none;
    opacity: 0.9;
    margin-left: 7.5px;
}


@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}


/* Pause animation on hover */
.toastify.on:hover .toast-progress-bar {
    animation-play-state: paused;
}

/* ========== Dynamic colors based on toast type ========== */
.progress-success {
    background: linear-gradient(90deg, #38ef7d, #11998e);
}

.progress-error {
    background: linear-gradient(90deg, rgb(216, 58, 31), rgb(209, 80, 69));
}

.progress-warning {
    background: linear-gradient(90deg, #f7971e, #ffd200);
}

.progress-info {
    background: linear-gradient(90deg, #56ccf2, #2f80ed);
}

.toast-animate-in {
    animation: fadeIn 0.5s ease forwards;
}

.toast-animate-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}


/* ========== Preloader ========== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 9999;
}

.spinner-icon {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-icon i {
    font-size: 3rem;
    color: #0f9d58;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.select2-container {
    width: 100% !important;
}

.select2-container--open {
    z-index: 9999 !important;
    position: relative;
}

.select2-dropdown {
    z-index: 9999 !important;
}


/* === Select2 container (input box style) === */
.select2-container--default .select2-selection--single {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px 15px;
    height: auto;
    min-height: 42px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

/* === On focus / active === */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-dropdown .select2-dropdown--below:focus,
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-dropdown .select2-dropdown--below:hover {
    border-color: #15738d;
}



/* === Selected text === */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 1.4;
    padding-right: 30px;
}

/* === Dropdown Arrow === */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* === Dropdown panel with Slide-down + Fade-in === */
.select2-container--default .select2-dropdown {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    animation: select2-slide-down-fade-in 0.5s forwards;
}

.select2-container--default .select2-dropdown .select2-search--dropdown .select2-search__field {
    border-color: #15738d !important;
    outline: none !important;
    /* box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15)!important; */
    border-radius: 8px !important;
}

.select2-results__option {
    margin: 5px !important;
    border: 2px solid #15738d !important;
}


/* === Option inside dropdown === */
.select2-container--default .select2-results__option {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    border-radius: 8px;
}

/* === Highlighted option on hover === */
.select2-container--default .select2-results__option--highlighted {
    background-color: #38ef7d;
    color: white;
}

/* === Selected option === */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #11998e;
    color: white;
}

/* === SLIDE-DOWN + FADE-IN animation === */
@keyframes select2-slide-down-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* SKELETON CSS */

/* Skeleton Base */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e0e0e0;
  border-radius: 4px;
}

/* Shimmer animation */
.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

/* Variants */
.skeleton-circle {
  border-radius: 50%;
}

.skeleton-line {
  height: 12px;
  margin: 6px 0;
}

.skeleton-line.short {
  width: 40%;
}

.skeleton-line.medium {
  width: 70%;
}

.skeleton-line.long {
  width: 90%;
}

