:root {
    --color-50: #f5faeb;
    --color-100: #e7f4d3;
    --color-200: #d2ebab;
    --color-300: #b3dc7a;
    --color-400: #8bc53f;
    --color-500: #77b032;
    --color-600: #5b8c24;
    --color-700: #476b20;
    --color-800: #3a551f;
    --color-900: #33491e;
    --color-950: #18280b;

}

/* Text Utilities */
.text-custom {
    color: var(--color-500) !important;
}

.text-custom-light {
    color: var(--color-200) !important;
}

.text-custom-dark {
    color: var(--color-800) !important;
}

/* Background Utilities */
.bg-custom {
    background-color: var(--color-500) !important;
}

.bg-custom-light {
    background-color: var(--color-50) !important;
}

.bg-custom-dark {
    background-color: var(--color-900) !important;
}

/* Base Button Style */
.btn-custom {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

/* Small Button Modifier */
.btn-custom.btn-sm,
.btn-outline-custom.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

/* Primary Custom Button */
.btn-custom {
    color: #fff;
    background-color: var(--color-500);
    border-color: var(--color-500);
}

.btn-dark {
    color: #fff;
    background-color: var(--color-950);
    border-color: var(--color-950);
}

.btn-custom:hover {
    background-color: var(--color-600);
    border-color: var(--color-600);
}

/* Outline Custom Button */
.btn-outline-custom {
    color: var(--color-600);
    background-color: transparent;
    border-color: var(--color-500);
}

.btn-outline-custom:hover {
    color: #fff;
    background-color: var(--color-500);
}

.badge-custom {
    display: inline-block;
    padding: 0.65em;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 30rem;
}

.badge-custom-soft {
    background-color: var(--color-100);
    color: var(--color-700);
}

.badge-custom-solid {
    background-color: var(--color-500);
    color: #fff;
}

.form-control-custom {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    color: var(--color-900);
    background-color: #fff;
    border: 1px solid var(--color-300);
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-custom:focus {
    border-color: var(--color-500);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(119, 176, 50, 0.25);
    /* 25% opacity of --color-500 */
}

.card-custom {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid var(--color-200);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-custom-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: var(--color-50);
    border-bottom: 1px solid var(--color-200);
    font-weight: bold;
    color: var(--color-800);
}

.card-custom-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

/* Target the header cells directly for the background */
.table thead.thead-blue th {
    background-color: var(--color-700) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 10px;
    border: none;
}

/* Row & Text Contrast */
.table tbody.table-row td {
    color: var(--color-950) !important;
    font-size: 0.9rem;
    padding: 12px 10px;
    border-bottom: 1px solid var(--color-100);
}

.table tbody.table-row:hover {
    background-color: var(--color-50);
}

.sub-nav-list .active {
    border-right: 10px solid var(--color-400);
    background-color: var(--color-100);
}

/* 1. The Alert Container */
.custom-alert {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--color-50);
    /* Ultra-light background */
    border: 1px solid var(--color-200);
    /* Subtle structure */
    border-left: 5px solid var(--color-600);
    /* Strong accent for importance */
    border-radius: 8px;
    color: var(--color-900);
    /* Deep, readable text */
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(var(--color-rgb-900), 0.05);
    animation: slideIn 0.3s ease-out;
}

/* 2. The Icon Styling */
.custom-alert i {
    font-size: 1.25rem;
    color: var(--color-600);
    /* Match the left border */
    flex-shrink: 0;
}

/* 3. Subtle Entrance Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Responsive tweak */
@media (max-width: 576px) {
    .custom-alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}