:root {
    --affirmare-light: #f8f8f8;
    --affirmare-light-dark: #f0f0f0;
    --affirmare-light-colored-background: #f7f7ff;
    --affirmare-dark: #13678a;
    --affirmare-sidebar-light-accent: #c7d0e5;
}


.table .table-group-divider {
    border-top: calc(var(--bs-border-width) * 2) solid var(--affirmare-sidebar-light-accent);
}

.table.table-striped {
    --bs-table-striped-bg: white;
    --bs-table-striped-color: black;
}

.table-striped > tbody > tr:nth-of-type(2n+1) > * {
    background-color: var(--affirmare-light-colored-background);
}

.table-striped > tbody > tr:nth-of-type(2n) > * {
    background-color: var(--affirmare-light-colored-background);
}

.mt-5 {
    margin-top: 2.0rem !important;
}

.mt-6 {
    margin-top: 2.5rem !important;
}

.messages-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 300px;
    height: 150px;
    z-index: 1000;
    pointer-events: none;
}

.messages-container dialog {
    width: 100%;
    border: 1px solid var(--affirmare-light-dark);
}

.messages-container dialog h1 {
    font-size: 1.4rem;
}

.messages-container dialog .message-icon {
    width: 32px;
    height: 32px;
}

.icon {
    height: 1rem;
    margin-right: 1rem;
    width: 18px;
}

.btn-check:checked + .card {
  border-color: var(--primary-color);
  background-color: white;
}

.radio-card {
  cursor: pointer;
}

.admin-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

/* Optional header inside a card */
.admin-card-header {
    margin-bottom: 1.5rem;
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/** Calendar **/
.calendar .calendar-year {
}

.calendar .calendar-week {
    display: inline-flex;
}

.calendar .calendar-week-number {
    width: 2rem;
    background: var(--affirmare-light);
}

.calendar .calendar-day {
    width: 5rem;
}

.calendar .calendar-day.current {
    background: var(--affirmare-light);
}

.calendar .calendar-day.selected {
    background: #d0f0ff;
}

.calendar .calendar-day.selectable {
    cursor: pointer;
}

.calendar .calendar-day.passed {
    opacity: 0.6;
}

.calendar .calendar-day.not-in-month {
    opacity: 0.6;
}

.calendar .calendar-day-number.today {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 4px;

    border-radius: 50%;
}

.calendar .calendar-day-container {
    height: 5rem;
    padding: 4px;
    border: 1px solid var(--affirmare-light-dark);
    border-right: 0;
    border-bottom: 0;
}

.calendar .calendar-day-container:last-child {
    border-right: 1px solid var(--affirmare-light-dark);
}

.calendar .calendar-week:last-child {
    border-bottom: 1px solid var(--affirmare-light-dark);
}

.calendar .calendar-header {
    background: var(--affirmare-light);
    padding: 8px;
    width: 37rem;
}

.calendar-header .current-month {
    font-size: 1.4rem;
}

.calendar .calendar-navigate img {
    width: 16px;
}

/** THEME authored by Gemini Pro 3.0 **/
/* --- REUSABLE ADMIN THEME VARIABLES --- */
:root {
    --primary-color: #2563eb;
    --sidebar-width: 260px;
    --sidebar-bg: #0f172a;
    --topbar-height: 70px;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --text-dark: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.expand-icon {
    transition: 0.2s;
}

.expanded>.expand-icon {
    transform: rotate(180deg);
}

[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

/* --- LAYOUT STRUCTURE --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: white;
    position: fixed;
    height: 100vh;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-link-admin {
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.nav-link-admin i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.nav-link-admin:hover, .nav-link-admin.active {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary-color);
}

.submenu .nav-link-admin {
    padding-left: 3rem;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
}

.top-bar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.content-body {
    padding: 2rem;
}

/* --- COMPONENTS --- */
.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.data-table-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.table thead th {
    background-color: #f1f5f9;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-DRAFT { background: #fef3c7; color: #92400e; }
.status-REQUESTED { background: #dcfce7; color: #166534; }
.status-ACCEPTED { background: #dbeafe; color: #1e40af; }
.status-COMPLETED { background: #fce7f3; color: #9d174d; }

.search-box {
    position: relative;
    max-width: 600px;
    flex-grow: 1;
}

.search-box img {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    padding-left: 35px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

/* Mobile Adjustments */
@media (max-width: 980px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

/* --- FORM CONTROL STYLES --- */
.card-form {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

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

input[readonly].form-control, textarea[readonly].form-control {
    color: var(--text-muted);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.input-group-text {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 8px;
}

.btn-check:checked + .custom-card-radio {
    border-color: #0d6efd;
    background: white;
}

.btn-check:checked + .custom-card-radio .custom-card-selected {
    display: block;
}

.custom-card-radio {
    cursor: pointer;
    background: #fafafa;
}

.custom-card-radio .custom-card-selected {
    display: none;
    margin-top: 1.0em;
}

.custom-card-radio .custom-card-selected span {
    background: #002984;
    color: white;
    padding: 2px 6px;
}