/* Global Styles */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #4b5563;
    --secondary-hover: #374151;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f3f4f6;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-primary:hover {
    background-color: #157347;
    border-color: #146c43;
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: #f9fafb;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background-color: #f9fafb;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-8 {
    margin-left: 2rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mr-8 {
    margin-right: 2rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1rem !important;
}

.p-8 {
    padding: 2rem;
}

.text-size-14 {
    font-size: 14px;
}

.text-primary {
    color: #198754 !important;
}

.active > .page-link {
    background-color: #198754 !important;
    color: #fff !important;
    border-color: #198754 !important;
}

.page-link {
    color: #198754 !important;
}


.bg-primary, .btn.btn-sm.btn-info, .btn-info, .btn-primary, .nav-link.active, .page-link.active {
    background-color: #198754 !important;
    color: #fff !important;
}

.nav-link, a, .text-primary, .text-info, .text-primary.text-sm, .text-primary.font-medium{
    color: #198754 !important;
    text-decoration: none !important;
}

.border-primary, .btn.btn-sm.btn-info, .btn-info, .btn-primary, .nav-link.active {
    border-color: #198754 !important;
    color: #fff !important;
}

select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #198754 !important;
}

/* Success toaster override */
#toast-container>.toast-success {
    background-color: #28a745 !important;
    /* Bootstrap green */
    color: #ffffff !important;
}

/* Optional: Button or close icon color (if used) */
#toast-container>.toast-success .toast-close-button {
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .card {
        padding: 0;
    }

    .fs-2.fw-bold {
        font-size: calc(1rem + .2vw) !important;
    }

    .fs-3.fw-bold {
        font-size: calc(1rem + .1vw) !important;
    }
    .fs-3.fw-bold+.text-muted {
        font-size: 12px !important;
    }

    .fs-4.fw-bold {
        font-size: calc(1rem - .2vw) !important;
    }

    .fs-4.fw-bold+.text-muted {
        font-size: 12px !important;
    }
}