:root {
    --bs-primary: #1378C8;
    --bs-primary-rgb: 19, 120, 200;
    --bs-primary-dark: #075593;
    --bs-success: #258A38;
    --bs-success-rgb: 37, 138, 56;
    --bs-danger: #F24D19;
    --bs-danger-rgb: 242, 77, 25;
    --bs-warning: #FFC107;
    --bs-body-bg: #EDEFF0;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background-color: #EDEFF0;
    color: #1F2937;
    min-height: 100vh;
}

/* Custom Primary Color Overrides */
.bg-primary {
    background-color: #1378C8 !important;
}

.bg-primary-dark {
    background-color: #075593 !important;
}

.btn-primary {
    background-color: #1378C8 !important;
    border-color: #1378C8 !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #075593 !important;
    border-color: #075593 !important;
}

.btn-outline-primary {
    color: #1378C8 !important;
    border-color: #1378C8 !important;
}

.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary.active {
    background-color: #1378C8 !important;
    color: #ffffff !important;
}

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

.text-success {
    color: #258A38 !important;
}

.btn-success {
    background-color: #258A38 !important;
    border-color: #258A38 !important;
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: #1c6f2c !important;
    border-color: #1c6f2c !important;
}

/* Navbar Styling - Matches Android colorPrimaryDark */
.navbar {
    background-color: #075593 !important;
    box-shadow: 0 3px 10px rgba(7, 85, 147, 0.25);
}

/* Sidebar Styling */
.app-sidebar {
    width: 260px;
    min-height: calc(100vh - 56px);
    background-color: #ffffff;
    border-right: 1px solid #d1d5db;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: #075593;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem 0.35rem 1rem;
    text-transform: uppercase;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    margin: 3px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
    background-color: #EBF6FF;
    color: #1378C8;
}

.sidebar-nav-item.active {
    background-color: #1378C8;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(19, 120, 200, 0.3);
}

.sidebar-nav-item.active i {
    color: #ffffff !important;
}

.sidebar-nav-item i {
    width: 24px;
    font-size: 1rem;
    color: #1378C8;
}

/* Badges */
.badge-completed {
    background-color: #258A38;
    color: #ffffff;
    padding: 0.45em 0.65em;
    font-size: 0.75em;
    border-radius: 0.375rem;
}

.badge-pending {
    background-color: #FFC107;
    color: #000000;
    padding: 0.45em 0.65em;
    font-size: 0.75em;
    border-radius: 0.375rem;
}

.badge-expired {
    background-color: #F24D19;
    color: #ffffff;
    padding: 0.45em 0.65em;
    font-size: 0.75em;
    border-radius: 0.375rem;
}

.extra-small {
    font-size: 0.75rem;
}

/* SVG Circular Progress Chart */
.circular-chart {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
}

.circle {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.card {
    border-radius: 16px !important;
}

.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 16px;
    background-color: #ffffff;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(7, 85, 147, 0.12) !important;
}

@media (max-width: 768px) {
    .app-sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #d1d5db;
    }
}
