/* Site-wide brand theme (matches login/index.php): green as the Bootstrap "primary"
   color, so every btn-primary / text-primary / bg-primary / active nav & pagination
   state across the admin panel matches the login page instead of Bootstrap's default blue. */
:root {
    --bs-primary: #00703C;
    --bs-primary-rgb: 0, 112, 60;
    --bs-link-color: #00703C;
    --bs-link-color-rgb: 0, 112, 60;
    --bs-link-hover-color: #00522c;
    --bs-link-hover-color-rgb: 0, 82, 44;
    --bs-nav-pills-link-active-bg: #00703C;
    --bs-pagination-active-bg: #00703C;
    --bs-pagination-active-border-color: #00703C;
}

.btn-primary {
    --bs-btn-bg: #00703C;
    --bs-btn-border-color: #00703C;
    --bs-btn-hover-bg: #00522c;
    --bs-btn-hover-border-color: #00522c;
    --bs-btn-focus-shadow-rgb: 0, 112, 60;
    --bs-btn-active-bg: #00522c;
    --bs-btn-active-border-color: #00522c;
    --bs-btn-disabled-bg: #00703C;
    --bs-btn-disabled-border-color: #00703C;
}

.btn-outline-primary {
    --bs-btn-color: #00703C;
    --bs-btn-border-color: #00703C;
    --bs-btn-hover-bg: #00703C;
    --bs-btn-hover-border-color: #00703C;
    --bs-btn-focus-shadow-rgb: 0, 112, 60;
    --bs-btn-active-bg: #00703C;
    --bs-btn-active-border-color: #00703C;
    --bs-btn-disabled-color: #00703C;
    --bs-btn-disabled-border-color: #00703C;
}

.form-check-input:checked {
    background-color: #00703C;
    border-color: #00703C;
}

.form-control:focus,
.form-select:focus {
    border-color: #6cb896;
    box-shadow: 0 0 0 .25rem rgba(0, 112, 60, .25);
}

@font-face {
    font-family: 'SolaimanLipi';
    src: local('SolaimanLipi'),
         url('../fonts/SolaimanLipi.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html, body {
    background: #f5f7fb;
    font-family: 'SolaimanLipi', Arial, sans-serif;
    font-synthesis: weight;
}

.login-header {
    background: #fff;
}

.bg-brand {
    background-color: #00703C !important;
}

.text-brand {
    color: #00703C !important;
}

.btn-brand {
    background-color: #00703C;
    border-color: #00703C;
    color: #fff;
}

.btn-brand:hover {
    background-color: #00522c;
    border-color: #00522c;
    color: #fff;
}

.brand-logo {
    width: 52px;
    height: 52px;
    font-size: 0.9rem;
}

.brand-icon {
    width: 56px;
    height: 56px;
}

.icon-box {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 112, 60, 0.1);
}

.icon-box-accent {
    background: rgba(244, 42, 65, 0.1);
}

.icon-box-orange {
    background: rgba(255, 122, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.login-page {
    min-height: calc(100vh - 150px);
}

.login-chart-card,
.login-form-card {
    border: none;
}

.login-chart-placeholder {
    width: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, #00854a 0%, #004d2c 100%);
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
}

.bg-accent {
    background-color: #F42A41 !important;
}

.text-accent {
    color: #F42A41 !important;
}

.btn-accent {
    background-color: #F42A41;
    border-color: #F42A41;
    color: #fff;
}

.btn-accent:hover {
    background-color: #c81f33;
    border-color: #c81f33;
    color: #fff;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.bg-orange {
    background: #ff7a00;
}

.bg-teal {
    background: #20c997;
}

.text-orange {
    color: #ff7a00 !important;
}

.footer {
    background: #fff;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    flex-shrink: 0;
}

.flex-grow-1 {
    min-width: 0;
}

.card {
    background: #fff;
}

.nav-link.active {
    background-color: #00703C;
}

.sidebar-toggle-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-icon {
    transform: rotate(-180deg);
}

.nav-icon {
    width: 1.5em;
    display: inline-block;
    text-align: center;
    margin-right: 0.85rem;
}

.table thead th {
    font-weight: 700;
}

.modal-dialog-scrollable .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.form-label {
    font-weight: 600;
}

.form-section {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1rem 0.25rem;
    margin-bottom: 1.25rem;
}

.form-section-title {
    font-weight: 700;
}
