/*overriding bootstrap styles*/
.text-muted {
    color: #979797 !important;
}

.dropdown-item {
    font-size: 16px;
    padding: 0.5rem 1.5rem;
    color: #416def;
    border-bottom: 1px solid #d8d8d8;
}

.dropdown-item:last-child {
    border: 0;
}

.btn {
    text-transform: uppercase;
}

.btn-primary:disabled {
    background: #dadada;
    color: #a4a4a4;
    border-color: #dadada;
}

.btn-primary {
    background: #416def;
}

.btn-primary:hover {
    background: #305cde;
}

.btn-light {
    color: #416def;
    background-color: #f0f1f1;
    border-color: #f0f1f1;
}

.btn-light:hover {
    color: #305cde;
}

.btn-outline-primary {
    border-color: #416def;
    color: #416def;
}

.btn-outline-primary:disabled {
    color: #a4a4a4 !important;
    border-color: #a4a4a4;
}

.btn-outline-primary:hover {
    background-color: #305cde;
    color: #ffffff;
}

.btn-outline-warning {
    border-color: #FF4D00;
    color:#FF4D00;
}

.btn-outline-warning:disabled {
    color: #a4a4a4 !important;
    border-color: #a4a4a4;
}

.btn-outline-warning:hover {
    background-color: #305cde;
    color: #ffffff;
}

.btn-primary:disabled {
    background: #dadada;
    color: #a4a4a4;
    border-color: #dadada;
}

a.btn.disabled {
    pointer-events: none;
    opacity: 1 !important;
    background: #dadada;
    color: #a4a4a4;
    border-color: #dadada;
}
/*end overriding bootstrap styles*/

.step-dot {
    width: 20px;
    height: 20px;
    background-color: #ccc;
    border-radius: 50%;
    margin: -5px auto 6px auto;
}

.active-dot {
    background-color: #0d6efd; /* Bootstrap primary */
}

.step-label {
    font-size: 0.9rem;
    white-space: nowrap;
}

.step.active .step-label {
    color: #0d6efd;
}

.scroll-margin-top {
    scroll-margin-top: 80px;
}

.table-wrapper {
    position: relative;
    width: 100%;
    overflow: auto;
    border-radius: 5px;
    height: calc(100vh - 8.5rem);
}

.table-container {
    white-space: nowrap;
}

.table-first-cell-width {
    min-width: 280px !important;
    max-width: 290px !important;
    white-space: normal !important;
}

.remove-item {
    cursor: pointer;
}

select[readonly]:read-only {
    pointer-events: none;
}

.row-margin-0 {
    display: flex;
    flex-wrap: wrap;
}

.readonly-inputs {
    background: transparent !important;
    border: 0 !important;
    pointer-events: none;
    appearance: none;
}

label.readonly-input-label {
    pointer-events: none;
}

label.readonly-input-label:not(.checkbox-label)::after {
    content: none!important;
}

label.readonly-input-label.file-upload-action {
    display: none;
}

.readonly-inputs::placeholder {
    color: black!important;
}

textarea.readonly-inputs {
    resize: none!important;
}

.custom-date.readonly-inputs + span {
    display: none;
}

.custom-checkbox:has(input[type="checkbox"].readonly-inputs) {
    pointer-events: none;
}

.readonly-inputs:checked~.custom-control-label::before {
    border-color: grey!important;
    background-color: grey!important;
}

.readonly-checkbox-label::before {
    opacity: 0.25 !important;
}

button.form-btn.readonly-inputs {
    display: none!important;
}

.readonly-mode.file-view {
    margin-top: 1rem;
}

.readonly-mode.info-when-editable {
    display: none!important;
}

.grey-bg {
    background: #EAEAEA;
}

.light-grey-bg {
    background: #F5F5F5;
}

.lighter-grey-bg {
    background: #F3F3F3;
}

.status-draft {
    background: #FFFFB0;
    color: #723B13;
    border-radius: 9px;
    padding: 6px 12px !important;
}

.status-pending {
    background: #FFF1E3;
    color: #EC882C;
    border-radius: 9px;
    padding: 6px 12px !important;
}

.status-processing {
    background: #F0EAFF;
    color: #836ABB;
    border-radius: 9px;
    padding: 6px 12px !important;
}

.status-on-review {
    background: #EFFFA4;
    color: #626D2D;
    border-radius: 9px;
    padding: 6px 12px !important;
}

.status-success {
    background: #DEEFFF;
    color: #0084FF;
    border-radius: 9px;
    padding: 6px 12px !important;
}

.status-failed {
    background: #FFE1E1;
    color: #E11C1C;
    border-radius: 9px;
    padding: 6px 12px !important;
}

.status-rejected {
    background: #F8D7DA;
    color: #DC3545;
    border-radius: 9px;
    padding: 6px 12px !important;
}

.status-approved {
    background: #D2F4EA;
    color: #1AA179;
    border-radius: 9px;
    padding: 6px 12px !important;
}

.font13 {
    font-size: 13px;
}

.form-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.form-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    min-height: 200px;
}

.form-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .form-card img {
        width: 60px;
        height: 60px;
    }

    .form-card {
        min-height: 160px;
    }

    .form-card .font-weight-bold {
        font-size: 0.9rem;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .form-card img {
        width: 70px;
        height: 70px;
    }

    .form-card {
        min-height: 180px;
    }
}

@media (min-width: 992px) {
    .form-card img {
        width: 80px;
        height: 80px;
    }

    .form-card {
        min-height: 200px;
    }
}

.form-card .d-flex.flex-column.justify-content-center {
    padding: 20px 15px;
}

.form-card p {
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .col-12.col-md-6.col-lg-4 {
        margin-bottom: 1rem;
    }

    .form-card .d-flex.flex-column.justify-content-center {
        padding: 15px 10px;
    }
}

.w-10-per {
    width: 10%;
}

.w-15-per {
    width: 15%;
}

.w-20-per {
    width: 20%;
}

.w-25-per {
    width: 25%;
}

.w-30-per {
    width: 30%;
}

.vertical-progress {
    display: flex;
    overflow: hidden;
    line-height: 0;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .25rem;
}

.custom-form-text {
    display: block;
    width: 100%;
    font-weight: 400;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    padding:.25rem .5rem;
    font-size:.875rem;
    border-radius:.2rem
}

.current-step {
    text-decoration: none !important;
    pointer-events: none !important;
}

.other-step {
    opacity: 0.5 !important;
    text-decoration: none !important;
}

.other-step:hover {
    opacity: 1 !important;
}

.col-4-half {
    -ms-flex: 0 0 37.5%;
    flex: 0 0 37.5%;
    max-width: 37.5%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.custom-error-text {
    font-size: 18px;
    line-height: 1.5rem;
    color: #ff8899;
}

.custom-button {
    color: #fff;
    border-color: #61adff;
}

.watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.custom-card > *:not(.watermark-logo) {
    position: relative;
    z-index: 1;
}

#head-teacher-info {
    position: relative;
    z-index: 10;
}

#nearest-schools-info {
    position: relative;
    z-index: 1;
}
