html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:IsActive:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.text-danger[role="alert"] ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* Remove arrows from number input */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

/* Lucide custom size icon */
svg.lucide.nav-icon {
    width: 19px !important;
    height: 19px !important;
}

.custom-icon-xxl {
    width: 60px !important;
    height: 60px !important;
}

.custom-icon-md {
    width: 19px !important;
    height: 19px !important;
}

.custom-icon-sm {
    width: 15px !important;
    height: 15px !important;
}

/* Profile Image */
.image-upload-box {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    object-position: center;
    display: block;
}

    .image-upload-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Choices.js Bootstrap-like styling */
.choices__inner {
    border-radius: 0.375rem !important; /* Bootstrap 5 rounded corners */
    border: 1px solid #ced4da !important; /* Bootstrap input border */
    min-height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    background-color: #fff !important;
}

.choices__input {
    background-color: #fff !important;
    font-size: 1rem !important;
}

.is-focused .choices__inner,
.is-open .choices__inner {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important; /* Bootstrap focus glow */
}

.choices__list--multiple .choices__item {
    background-color: #0d6efd !important; /* Bootstrap primary */
    border: none !important;
    color: #fff !important;
    border-radius: 0.25rem !important;
    padding: 0.25rem 0.5rem !important;
    margin-right: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem !important;
}

    .choices__list--multiple .choices__item.is-highlighted {
        background-color: #0b5ed7 !important; /* Darker primary when selected */
    }

.choices__placeholder {
    color: #6c757d !important; /* Bootstrap's placeholder color */
    opacity: 1 !important;
}

.choices__list.choices__list--dropdown {
    border-radius: 0.375rem !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.175) !important;
}

.choices__list--dropdown .choices__item {
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

    .choices__list--dropdown .choices__item.is-highlighted {
        background-color: #e9ecef !important; /* Bootstrap hover background */
        color: #212529 !important;
    }

.choices[data-type*="select-multiple"] .choices__inner {
    cursor: text !important;
}

/* Hide the default multiple select */
.choices-select {
    opacity: 0; /* hide initially */
    visibility: hidden;
}

.reproductive-choices-select {
    opacity: 0; /* hide initially */
    visibility: hidden;
}


/* Shrink a lil bit in Mobile View */
@media (max-width: 575.98px) {
    body,
    .card-title,
    .timeline-header {
        font-size: 0.95rem !important; /* slightly smaller text */
    }

    .container, .container-fluid {
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
    }

    .btn {
        font-size: 0.895rem !important;
    }

    .form-control {
        padding: 0.25rem 0.5rem; /* smaller input fields */
        font-size: 0.9rem;
    }

    .navbar {
        padding: 0.25rem 0.5rem; /* smaller navbar padding */
    }

    .image-upload-box {
        width: 140px;
        height: 140px;
    }

    .time-label {
        font-size: 0.875rem !important;
    }
}

/* profile styling */
.list-group-item {
    border: none;
    border-radius: 0;
    transition: all 0.15s ease;
}

    .list-group-item:hover {
        background-color: #f8f9fa;
    }

    .list-group-item.active {
        background-color: #0d6efd !important;
        color: #fff !important;
        font-weight: 600;
    }

/* animation for nfc icon */

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 1s infinite;
}

/* Styling for group nfc scanning */

.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa;
    margin: 0 5px;
    position: relative;
}

    .step.active {
        background-color: #e3f2fd;
        border: 1px solid #2196f3;
    }

    .step.completed {
        background-color: #e8f5e8;
        border: 1px solid #4caf50;
    }

.step-number {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    margin: 0 auto 5px;
}

.step.active .step-number {
    background-color: #2196f3;
}

.step.completed .step-number {
    background-color: #4caf50;
}

.step-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.step-status {
    display: block;
    font-size: 0.8em;
    color: #6c757d;
}

.step.completed .step-status {
    color: #4caf50;
}