body {
    background: url('../images/pattern-1.svg') no-repeat center bottom fixed;
    background-size: cover;
    font-family: 'Inter', sans-serif;
}

.h-text{
    font-family: 'EndlessSunriseRegular', sans-serif !important;
}

/* FOR EVENT */
.event-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
}

.event-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    color: inherit;
}

/* Date Badge */
.event-date-badge {
    min-width: 52px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
    flex-shrink: 0;
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Color variants */
.event-date-badge.success { background: #198754; }
.event-date-badge.danger  { background: #dc3545; }
.event-date-badge.warning { background: #ffc107; color: #333; }
.event-date-badge.info    { background: #0dcaf0; color: #333; }
.event-date-badge.dark    { background: #212529; }

.event-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
}

.event-meta {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-meta i {
    font-size: 0.75rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 10px;
    margin-top: 20px;
}

.border-dark {
    border-color: #e2e5eb !important;
}

.text-fusion{
    color: #000 !important;
    font-weight: bold !important;
}

/* Mobile Menu */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #212529;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 0;
    border-radius: 20px 20px 0 0;
    z-index: 1030; /* above content */
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #aaa;
    text-decoration: none;
}

.bottom-nav a.active {
    color: #fff;
}

.fab-button {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid #212529 !important;
}

/* Side menu container */
.side-menu {
    position: fixed;
    top: 0;
    left: -950px; /* hidden by default */
    width: 300px;
    height: 100%;
    background: #fff;
    transition: left 0.3s ease;
    color: #000;
    z-index: 10001;
}

.side-menu ul li a:hover {
    background: #f0f0f0 !important;
}

.side-menu ul li a.active {
    background: #333 !important; /* Bootstrap dark */
    color: #fff !important;
}

/* Header */
.menu-header {
    background: #333;
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #444;
}

/* Reset list style */
.side-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each menu item */
.side-menu ul li {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

/* Links */
.side-menu ul li a {
    display: block;
    padding: 1rem; /* p-3 equivalent */
    color: #222;
    text-decoration: none;
    font-size: 1rem;
}

/* Hover effect */
.side-menu ul li a:hover {
    background: #f5f5f5;
    color: #000;
}



/* When active */
.side-menu.active {
    left: 0;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Show overlay */
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

a {
    text-decoration: none !important;
}
a:hover {
    text-decoration: none !important;
}

button:focus,
button:active,
button.active,
.btn:focus,
.btn:active,
.btn.active {
  outline: none !important;         /* Remove the default outline */
  box-shadow: none !important;      /* Remove shadow/focus ring */
  border-color: inherit !important; /* Optional: keep border color same */
}

hr {
    border: 0 !important;
    border-top: 1px solid #e2e5eb !important; /* set thickness & color */
    background-color: #e2e5eb;
    opacity: 1;
}

#myModal .btn-close,
#myModal #closeModal,
#myModal #closeModalBtn {
    background-color: #fff !important;
    border: 1px solid #000 !important;
    color:#000 !important;
    border-radius: .25rem;
    width: auto;
    height: auto;
    opacity: 1;
}

.page-item.active .page-link {
  background-color: #000 !important;
  color: #fff !important;
}

.page-link {
  background-color: #fff !important;
  color: #000 !important;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;          /* background color */
    z-index: 9999;             /* stays on top */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile menu */
.custom-nav {
    color: #000 !important;
    font-weight: normal;
    border: px !important;
}

.custom-nav:hover,
.custom-nav.active {
    background-color: #fff !important;
    color: #000 !important;
    border: 0px !important;
    font-weight: bold;
}

.logout-btn {
    color: #000 !important;
    background-color: #fff !important;
    border: 0px !important;
}

.logout-btn:hover {
    font-weight: bold;
}

/* SELECT2 */
.select2-container {
    width: 100% !important;
}

/* Dropdown container */
.select2-container .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--pe-border-color) !important;
    outline: 0;
    box-shadow: none;
}

/* Optional: change only when open */
.select2-container--open .select2-dropdown {
    border-color: var(--pe-border-color) !important; /* green when open */
}

.input-group>.select2-container--default {
    width: auto !important;
    flex: 1 1 auto !important;
}
.input-group>.select2-container--default .select2-selection--single {
    height: 100% !important;
    line-height: inherit !important;
}
.input-group>.select2-container--default .select2-selection--multiple {
    height: 100% !important;
    line-height: inherit !important;
    min-height: 40px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    line-height: 2rem;
    padding-left: 5px;
}


.select2-selection {
  -webkit-box-shadow: 0;
  box-shadow: 0;
  background-color: #fff;
  border: var(--pe-border-width) solid var(--pe-border-color) !important;
  border-radius: 0;
  color: #555555;
  font-size: 14px;
  outline: 0;
  min-height: 40px !important;
  text-align: left;
}


.select2-selection__rendered {
  margin: 5px;
}

.select2-selection__arrow {
  margin: 5px;
}


/* PROFILE PAGE */
.txn-tabs .nav-link {
    color: #6c757d;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 7px 18px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.txn-tabs .nav-link.active {
    background: #212529;
    color: #fff;
    border-color: #212529;
}
.txn-tabs .nav-link:not(.active):hover {
    background: #f1f3f5;
    border-color: #dee2e6;
    color: #212529;
}

/* Status badges */
.status-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.status-approved  { background: #d1fae5; color: #065f46; }
.status-pending   { background: #fef9c3; color: #854d0e; }
.status-rejected  { background: #fee2e2; color: #991b1b; }
.status-paid      { background: #dbeafe; color: #1e40af; }
.status-overdue   { background: #ffe4e6; color: #9f1239; }
.status-partial   { background: #ede9fe; color: #5b21b6; }

/* Loan card row */
.txn-row {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
    transition: background 0.15s;
}
.txn-row:last-child { border-bottom: none; }
.txn-row:hover { background: #f8f9fa; border-radius: 8px; }

.txn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.txn-icon.loan    { background: #e0f2fe; color: #0369a1; }
.txn-icon.payment { background: #dcfce7; color: #15803d; }
.txn-icon.penalty { background: #fee2e2; color: #b91c1c; }

.txn-amount {
    font-weight: 700;
    font-size: 0.95rem;
}
.txn-amount.credit { color: #15803d; }
.txn-amount.debit  { color: #b91c1c; }

.txn-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
}
.txn-sub {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Summary chips */
.summary-chip {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 16px;
    flex: 1;
    min-width: 100px;
}
.summary-chip .chip-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    font-weight: 600;
}
.summary-chip .chip-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-top: 2px;
}

/* Progress bar */
.loan-progress {
    height: 5px;
    border-radius: 10px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 6px;
}
.loan-progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #0d6efd, #6ea8fe);
}

.filter-bar select {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #495057;
}

/* Make all images inside the card list grayscale */

.list-group-item font{
    color:#000 !important;
    font-size: 1rem;
    font-weight: normal !important;
}

.list-group-item a{
    color:#000 !important;
    font-size: 1rem;
    font-weight: normal !important;
}

.leaflet-control-zoom a{
    border: 1px solid #000 !important;
    margin: 5px !important;
}

/* MMENU */
.mm-menu {
    z-index: -1;
    font-family: 'Inter', sans-serif;
}

.mm-listitem{
    font-size: 20px !important;
}

.mm-navbar__title{
    font-size: 24px !important;
    color: #000 !important;
    font-weight: bold !important;
}

.mm-wrapper--opened .mm-menu {
    z-index: 2000 !important;
    font-family: 'Inter', sans-serif;
}

/* re-Captcha */
#recaptcha-wrapper {
    max-width: 100%;
    display: inline-block;
}
#recaptcha-wrapper iframe {
    max-width: 100%;
}

/* FullCalendar */
.fc .fc-button {
    background: transparent;
    color: #212529;
    border: 1px solid #212529;
}
.fc .fc-button:hover {
    background: #212529;
    color: #fff;
}
/* Day header cells (Mon, Tue, etc.) */
.fc-day-header {
    background: #fff !important;       /* White background */
    color: #212529 !important;         /* Dark text */
    font-size: 1rem !important;      /* Larger font */
    font-weight: 600;                  /* Bold */
    border-bottom: 2px solid #dee2e6;  /* Subtle bottom border */
    padding: 0.5rem 0 !important;      /* Vertical padding */
}
.fc-day-header span {
    display: block;
    text-align: center;                /* Center the text */
}
.fc-day-number {
    font-size: 0.8rem !important;
    font-weight: 600;
    color: #212529 !important;
}

.fc-center h2{
    font-size: 1.3rem !important; 
}

:root {
    --prm-color: #000;
    --prm-gray: #e2e5eb;
}


/* Main stepper */
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* spacing between steps */
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

/* Step button */
.step-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background-color: var(--prm-gray);
    transition: .4s;
    font-size: 1.25rem;
}

.step-button[aria-expanded="true"],
.step-button.active {
    background-color: var(--prm-color);
    color: #fff;
}

.done {
    background-color: var(--prm-color);
    color: #fff;
}

.step-item {
    flex: 1;
    min-width: 80px;
    position: relative;
    z-index: 10;
}

/* Progress bar centered behind steps */
#progress {
    position: absolute;
    top: 32px; /* aligns with center of buttons */
    left: 0;
    right: 0;
    width: 100%;
    max-width: 90%;
    margin: auto;
    height: 5px;
    z-index: 5;
}

/* Progress bar colors */
#progress::-webkit-progress-value {
    background-color: var(--prm-color);
    transition: .5s ease;
}
#progress::-webkit-progress-bar {
    background-color: var(--prm-gray);
}


@media (max-width: 768px) {
    .navbar {
        background-color: #fff !important;
    }

    .navbar-mobile-white {
        background-color: #fff !important;
    }

    .side-menu {
        width: 80%;
    }
    .side-menu ul li a {
        font-size: 1.1rem;
    }

    .border-md-0-top { border-top: none !important; }
    
    .fc-toolbar.fc-header-toolbar {
        flex-direction: column !important;
        text-align: center;
    }

    .fc-toolbar.fc-header-toolbar > div {
        margin-bottom: 0.5rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .fc-toolbar.fc-header-toolbar h2 {
        font-size: 1.25rem;
        margin: 0.5rem 0;
    }

    /* Make button groups stretch/stack neatly */
    .fc .fc-button-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fc .fc-button-group .fc-button {
        margin: 2px;
    }

    footer {
        padding-bottom: 70px !important; /* slightly bigger than menu height */
    }

    .steps {
        gap: 1rem; /* less spacing between steps */
    }

    .step-button {
        width: 48px;
        height: 48px;
        font-size: 1rem; /* smaller number inside */
    }

    #progress {
        top: 24px; /* adjust since buttons are smaller */
        height: 4px;
        max-width: 95%; /* let it span a bit more */
    }

    .step-item .step-title {
        font-size: 0.85rem; /* smaller label */
    }

}

@media (min-width: 768px) {
    .navbar {
        background-color: transparent !important;
        transition: background-color 0.3s ease;
    }
    .navbar.scrolled {
        background-color: #fff !important;
    }
}


/* Hide the Today button */
.fc .fc-today-button {
  display: none !important;
}

/* Mobile view: stack items */
@media (max-width: 767.98px) {
}
