@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* assets/css/style.css */
:root {
    /* default values can be overridden with inline styles from PHP */
    --primary-color: #005eb8;
    --primary-color-hover: #004494;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ff8f07;
    --danger-color: #f4182e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    --bs-emphasis-color-rgb: 33, 37, 41; /* default to dark text color for navbar */
    --bs-navbar-padding-y: 0rem;
    --bs-navbar-padding-x: 0;
    --bs-navbar-color: rgba(var(--bs-emphasis-color-rgb), 0.65);

    --bs-navbar-brand-padding-y: 0;
    --bs-navbar-brand-margin-end: 0;
    --bs-navbar-brand-font-size: 1.25rem;

}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-light {
    color: var(--light-color) !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
}

.btn-outline-primary {
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
}

body {
    font-family: 'Albert Sans', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.card {
    transition: transform 0.3s ease;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control, .form-select {
    padding: 0.40rem 0.5rem;
    border-radius: 0.5rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 94, 184, 0.25);
    border-color: var(--primary-color);
}

/* Container for each option (the white box) */
#optionsArea .form-check {
    display: flex;
    align-items: center; /* Vertically centers everything inside */
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #fff;
    cursor: pointer;
    min-height: 50px; /* Ensures a consistent look */
}

/* The Radio Button */
#optionsArea .form-check-input {
    margin-top: 0; /* CRITICAL: Remove Bootstrap's default offset */
    margin-left: 0; /* Reset for flex layout */
    margin-right: 1rem; /* Space between circle and text */
    flex-shrink: 0; /* Prevents the circle from squishing when text is long */
    transform: scale(1.35);
    cursor: pointer;
}

/* The Label Text */
#optionsArea .form-check-label {
    padding-left: 0; /* Padding is now handled by flex margins */
    font-size: 1.02rem;
    cursor: pointer;
    flex-grow: 1; /* Allows text to take up remaining space */
    margin-bottom: 0; /* Removes default label margin */
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


/* --- FORM SWITCH OVERRIDE --- */

/* 1. Remove the default embedded SVG */
.form-switch .form-check-input {
  background-image: none !important;
  position: relative;
  /* Ensure the switch container stays the correct size */
  width: 2em; 
}

/* 2. Create the new thumb using the font icon */
.form-switch .form-check-input::after {
  content: "\f287"; /* Bootstrap Icon: circle-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 1rem; /* Adjust if your switch is smaller/larger */
  color: rgba(0, 0, 0, 0.25); /* The gray thumb color when unchecked */
  transition: transform 0.15s ease-in-out, color 0.15s ease-in-out;
}

/* 3. Handle the checked state behavior */
.form-switch .form-check-input:checked::after {
  transform: translate(1em, -50%); /* Moves the icon to the right */
  color: #fff; /* The white thumb color when checked */
}

/* Optional: Focus state styling for the icon */
.form-switch .form-check-input:focus::after {
  color: #86b7fe; /* Bootstrap's default focus blue */
}
.form-switch .form-check-input:checked:focus::after {
  color: #fff; 
}
/* --- STANDARD CHECKBOX OVERRIDE --- */

/* Remove the default SVG */
.form-check-input[type="checkbox"]:not(.form-switch .form-check-input) {
  background-image: none !important;
  position: relative;
}

/* Add the font checkmark only when checked */
.form-check-input[type="checkbox"]:not(.form-switch .form-check-input):checked::after {
  content: "\f26e"; /* Bootstrap Icon: check2 */
  font-family: "bootstrap-icons";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; /* Checkmark color */
  font-size: 0.85rem; 
  font-weight: bold; /* Make the icon slightly thicker */
}

.order-6 { order: 6; }
.order-7 { order: 7; }
.order-8 { order: 8; }
.order-9 { order: 9; }
.order-10 { order: 10; }
.order-11 { order: 11; }
.order-12 { order: 12; }
.order-13 { order: 13; }
.order-14 { order: 14; }
.order-15 { order: 15; }
.order-16 { order: 16; }
.order-17 { order: 17; }
.order-18 { order: 18; }
.order-19 { order: 19; }
.order-20 { order: 20; }