:root {
    --syb-primary: #037334;      /* Primary Green */
    --syb-dark: #042616;         /* Very Dark Green */
    --syb-forest: #234016;       /* Forest Green */
    --syb-accent-red: #D93654;   /* Red Accent */
    --syb-accent-pink: #BF3B79;  /* Pink Accent */
    --syb-light-bg: #f0f7f4;     /* Light Greenish tint for backgrounds */
}

/* Override primary colors */
.text-primary { color: var(--syb-primary) !important; }
.btn-primary {
    background-color: var(--syb-primary) !important;
    border-color: var(--syb-primary) !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--syb-forest) !important;
    border-color: var(--syb-forest) !important;
}

.nav-link.active { color: var(--syb-primary) !important; }
.nav-link:hover { color: var(--syb-forest) !important; }

/* Brand Logo Responsive Sizing */
.brand-logo {
    height: 45px;
    width: auto;
    transition: height 0.2s ease;
}
@media (max-width: 768px) {
    .brand-logo {
        height: 35px;
    }
}

/* Navbar Toggler */
.navbar-toggler { border: none !important; padding: 0 !important; }
.navbar-toggler:focus { box-shadow: none !important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23037334' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Search Button in Nav */
.nav-search-btn {
    color: var(--syb-primary);
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-search-btn:hover {
    color: var(--syb-forest);
}

body {
    background-color: #ffffff;
    color: var(--syb-dark);
    font-family: 'Inter', sans-serif;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.hero-section {
    padding: 0rem 0;
    background-color: var(--syb-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.categories-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.category-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 2.5rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: var(--syb-primary);
}

.icon-shape {
    width: 72px;
    height: 72px;
    background: rgba(3, 115, 52, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--syb-primary);
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.category-card:hover .icon-shape {
    background: var(--syb-primary);
    color: #ffffff;
    transform: scale(1.1);
}

.category-title {
    font-weight: 700;
    color: var(--syb-dark);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
}

/* Modal Custom Styling */
.modal-content { border: none; border-radius: 0.8rem; }
.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.75rem 2.25rem;
    background-color: var(--syb-light-bg);
    border-radius: 0.8rem 0.8rem 0 0;
}
.modal-title {
    font-weight: 800;
    color: var(--syb-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Modal Specifics */
.search-input-group {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
}
.search-input-group:focus-within {
    border-color: var(--syb-primary);
    background-color: #ffffff;
}
.search-input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.5rem;
    font-size: 1.1rem;
    color: var(--syb-dark);
}
.search-input:focus {
    outline: none;
}

.table-item:hover { background-color: var(--syb-light-bg); }

.download-btn {
    text-decoration: none !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-xls { color: var(--syb-primary); background: rgba(3, 115, 52, 0.1); }
.btn-xls:hover { background: var(--syb-primary); color: #ffffff; }

.btn-pdf { color: var(--syb-accent-red); background: rgba(217, 54, 84, 0.1); }
.btn-pdf:hover { background: var(--syb-accent-red); color: #ffffff; }

footer {
    background-color: var(--syb-dark);
    color: #ffffff;
    padding: 5rem 0;
}

.hero-title { color: var(--syb-primary); letter-spacing: -0.025em; }
.hidden-data { display: none; }


/* Mobile navbar row fix */
.navbar-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.navbar-brand {
    min-width: 0;
    flex: 1 1 auto;
}

.mobile-nav-actions {
    flex: 0 0 auto;
    white-space: nowrap;
}

.nav-search-btn,
.navbar-toggler {
    flex-shrink: 0;
}

/* Modal download buttons wrapper */
.table-download-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 576px) {
    .brand-logo {
        height: 30px;
    }

    .nav-search-btn {
        padding: 0.35rem;
        font-size: 1rem;
    }

    .navbar-toggler {
        padding: 0 !important;
    }

    .table-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .table-download-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .table-download-actions .download-btn {
        width: 100%;
        justify-content: center;
    }
}
