@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

* {
    font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 500;
}

.btn-primary {
    background-color: #18b26f;
    color: white;
    outline: none;
    border: none;
}

.btn-secondary {
    background-color: #b7e9b0;
    color: #1c1c1c;
    outline: none;
    border: none;
}

.btn-light {
    background-color: #f6f6f6;
}
.btn-primary:hover {
    background-color: #0b5836;
}

.btn-secondary:hover {
    background-color: #18b26f;
}

.btn:focus,
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.4); /* custom purple glow */
}

.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
    background-color: #18b26f;
    color: #fff;
}

.nav-pills .nav-link.secondary,
.nav-tabs .nav-link.secondary {
    background-color: #f6f6f6;
    color: #1c1c1c;
}

.accordion-button {
    background-color: #b7e9b0; /* your custom background */
    color: #1c1c1c;
}

.accordion-button:not(.collapsed) {
    background-color: #b7e9b0; /* active/expanded background */
    color: #1c1c1c;
}

.table thead th {
    background-color: #f6f6f6;
    color: #1c1c1c;
    font-weight: 500;
}

.table {
    color: #383838;
}

.table tbody tr td {
    font-weight: 300;
}

.bg-secondary {
    background-color: #b7e9b0 !important;
}

.bg-secondary:hover {
    background-color: #18b26f !important;
}

#navigation a.active {
    background-color: #23366a !important; /* Medium gray (matches Bootstrap's secondary) */
    color: #fff !important;
    font-weight: bold;
}

.bg-highlighted {
    background-color: #cdffc6 !important; /* Light gray for highlighted rows */
}

.dashboard-icon {
    color: #18b26f;
}

a {
    color: #18b26f;
}

.nav-link {
    color: #23366a;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 576px) {
    section[id]::before {
        content: "";
        display: block;
        height: 56px; /* Match height of offcanvas toggle/header if needed */
        margin-top: -56px;
    }
}

.pagination a {
    color: #18b26f;
}

.page-item.active .page-link {
    background-color: #18b26f;
    color: white;
    border-color: #18b26f;
}

.sortable {
    color: black;
}

.sortable-filter {
    color: #18b26f;
}

.no-style-header {
    text-decoration: none;
}

.legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.text-blue {
    color: #23366a;
}

/* Highlight only if touched + invalid */
input.touched:invalid,
select.touched:invalid,
textarea.touched:invalid {
    border: 2px solid #dc3545; /* Bootstrap danger red */
}

.validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}
.validation-error.active {
    display: block;
}

/* Stepper Styles */
.stepper-wrapper {
    display: flex;
    align-items: center;
    min-width: 500px;
    padding: 10px 0;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1)); /* Adds depth */
}

.step-arrow {
    flex: 1;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
    margin-right: 2px; /* This creates the "gray stroke" look between segments */

    /* This creates the arrow shape perfectly */
    clip-path: polygon(0% 0%, 92% 0%, 100% 50%, 92% 100%, 0% 100%, 8% 50%);
}

/* Color States */
.step-done {
    background-color: #2e7d32;
} /* Dark Green */
.step-pending {
    background-color: #a5d6a7;
} /* Light Green */
.step-red {
    background-color: #d32f2f;
} /* Red for -1 */

/* Fix for the first and last arrow to look clean */
.step-arrow:first-child {
    clip-path: polygon(0% 0%, 92% 0%, 100% 50%, 92% 100%, 0% 100%);
}

/* Animation Styles */
@keyframes pulse-yellow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
        opacity: 0.6; /* This creates the "fade" effect smoothly */
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
        opacity: 1;
    }
}

.status-current {
    background-color: #ffc107 !important;
    border: 3px solid white; /* Matches your other circles */
    animation: pulse-yellow 2s infinite ease-in-out;
}

/* Audit Log Styles */
/* Fix the floating position */
.audit-log-section {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Pill-shaped date inputs */
.audit-date-input {
    border-radius: 20px !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2b3e7a;
    border-color: #dee2e6;
}

.audit-list-container {
    color: #2b3e7a;
    font-weight: bold;
    font-size: 12px;
    background-color: white;
}
.audit-list-container > div:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Individual Log Item */
.audit-log-item {
    display: flex;
    padding: 5px 15px;
    border-bottom: 1px solid rgba(56, 56, 56, 0.24);
    font-size: 12px;
    color: #2b3e7a;
    flex-direction: row;
    justify-content: space-between;
    
    /* Base State */
    min-height: 32px;
    max-height: 32px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.no-audit-logs {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 32px;
    font-size: 0.85rem;
    color: #2b3e7a;
}

.audit-log-item > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-field {
    flex: 1;
}

.field-name-field {
    flex: 1;
}

.change-field {
    flex: 2;
}

/* Expanded State */
.audit-log-item.expanded {
    max-height: none;
}

.audit-log-item.expanded > div {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}