/* Custom styles go here */
/* Example: Adjust body padding if needed */
body {
    padding-top: 56px; /* Height of fixed navbar */
}

/* Header Stats Styling */
#headerStats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.stat-chip {
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 500;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.stat-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #0d6efd;
}

.stat-chip i {
    color: #0d6efd;
    margin-right: 0.5rem;
}

/* Global loading overlay */
#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: none; /* toggled to flex when visible */
    align-items: center;
    justify-content: center;
    z-index: 2000; /* above modals/backdrops */
}
#loadingOverlay .overlay-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    color: #495057;
    font-weight: 500;
}

/* Statistics section */
.stats-card {
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    font-weight: 500;
}

.stat-chip i.fa-solid {
    color: #0d6efd;
}

.card .border .mt-2 {
    margin-bottom: 5rem !important;
}
#additionalEntriesTimeline .entry-day + .entry-day {
    margin-top: 0;
    padding-top: 1rem;
}

.entry-day-heading {
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: .35rem;
}

#additionalEntriesTimeline .entry-day-heading + .entry-table-block {
    margin-top: .2rem !important;
}

#additionalEntriesTimeline .entry-day-heading + .entry-table-block > .small {
    margin-bottom: 0 !important;
}

#additionalEntriesTimeline td.entry-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.entry-item {
    border-left: 3px solid var(--bs-secondary-border-subtle);
    padding: .65rem .75rem;
    margin-top: .6rem;
    background: var(--bs-tertiary-bg);
    border-radius: 0 .375rem .375rem 0;
}

.entry-item.entry-activity { border-left-color: var(--bs-primary); }
.entry-item.entry-supervision { border-left-color: var(--bs-purple, #6f42c1); }
.entry-item.entry-reflection { border-left-color: var(--bs-teal, #20c997); }

.additional-entry-source {
    display: none;
}
