﻿body {
    background-color: #e7efff;
}

.navbar-custom {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 10px 20px;
}

.logo-img {
    height: 45px;
}

.menu-btn {
    font-size: 22px;
    border: none;
    background: none;
    color: #1E4FA5;
}

.content-wrapper {
    padding: 20px;
}

.user-icon {
    font-size: 24px;
    color: #1E4FA5;
    cursor: pointer;
}

.profile-section:hover, .profile-section:focus, .profile-section:focus-visible {
    cursor: pointer;
}

.form-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 2px #000;
    padding: 25px;
}
.ajax__tab_header {
    display: flex;
    background: #fff;
    justify-content: center !important;
    gap: 15px;
    margin-bottom: 1.75rem;
}

.ajax__tab_body {
    border-bottom: 2px solid #ed1c24;
    border-top: 2px solid #ed1c24;
    padding: 20px;
}

/* ── Page Header ── */
.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.75rem;
}

.page-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1E4FA5, #2a6bc2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(30,79,165,0.3);
    flex-shrink: 0;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2744;
    letter-spacing: -0.3px;
}

.page-sub {
    font-size: 12px;
    color: #8a96b0;
    margin-top: 2px;
}

/* ── Card ── */
.form-card {
    background: #fff;
    border: 1px solid #e4eaf5;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(30,79,165,0.07);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.form-card-header {
    padding: 1.1rem 1.75rem;
    background: #000a59;
    display: flex;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    align-items: center;
    justify-content: space-between;
}

.form-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.header-badge {
    font-size: 11px;
    font-weight: 500;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 3px 12px;
}

.form-body {
    padding: 1.75rem;
   
}

/* ── Form Row ── */
.form-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.field-label {
    font-size: 11px;
    font-weight: 600;
    color: #7a85a0;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.field-input, .form-control {
    padding: 11px 14px;
    border: 1.5px solid #a7a9ad;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--bs-font-sans-serif);
    color: #1a2744;
    outline: none;
    transition: all 0.2s;
}

    .field-input::placeholder {
        color: #7a85a0;
    }

    .field-input:hover {
        border-color: #c5d0e8;
        background: #f2f5fb;
    }

    .field-input:focus {
        border-color: #1E4FA5;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(30,79,165,0.09);
    }

    .form-selection{
        position: relative;
    }

.dxpcDropDown, .dxeDropDownWindow{
    top: 72px !important;
    left: 15px !important;
}
/* ── Toggle ── */
.toggle-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.toggle-label-top {
    font-size: 11px;
    font-weight: 600;
    color: #7a85a0;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-track {
    width: 54px;
    height: 27px;
    border-radius: 100px;
    background: #e2e8f5;
    border: 1.5px solid #d0d8ec;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .toggle-track.active {
        background: linear-gradient(135deg, #1E4FA5, #2a6bc2);
        border-color: #1E4FA5;
        box-shadow: 0 2px 10px rgba(30,79,165,0.3);
    }

.toggle-thumb {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.toggle-track.active .toggle-thumb {
    left: 27px;
}

.status-text {
    font-size: 13px;
    font-weight: 600;
    color: #1a2744;
    min-width: 52px;
}

    .status-text.inactive {
        color: #a0aab8;
    }

/* ── Divider ── */
.form-divider {
    height: 1px;
    background: #aaa;
    margin: 0 0 1.5rem;
}

/* ── Validation ── */
.val-msg {
    display: block;
    color: #e05252;
    font-size: 11.5px;
    margin-top: 4px;
}

/* ── Alert ── */
.alert-box {
    margin-top: 1rem;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    background: #e8f5ee;
    color: #1a7f4b;
    border: 1px solid #b8e0c8;
}

    .alert-box.error {
        background: #fdeaea;
        color: #c0392b;
        border-color: #f5b7b1;
    }

/* ── Buttons ── */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    letter-spacing: 0.2px;
}

.btn-custom{
    min-width: 150px;
}

.btn-primary {
    background: linear-gradient(135deg, #1558a8, #1E4FA5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30,79,165,0.35);
}

    .btn-primary:hover , .btn-primary:active , .btn-primary:focus {
        background: linear-gradient(135deg, #1E4FA5, #2563c0);
        transform: translateY(-1px);
    }


.btn-secondary {
    background: #f0f4fb;
    color: #1E4FA5 !important;
    border: 1.5px solid #d0daf0;
}

    .btn-secondary:hover , .btn-secondary:active , .btn-secondary:focus {
        background: #e4ecfb;
    }

.grid-section {
    padding: 0 1.75rem 1.75rem;
}

.grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.grid-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2744;
}

.search-wrap {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.search-input {
    padding: 8px 14px 8px 32px;
    background: #f7f9fc;
    border: 1.5px solid #e2e8f5;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    color: #1a2744;
    outline: none;
    width: 200px;
    transition: all 0.2s;
}

    .search-input:focus {
        border-color: #1E4FA5;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(30,79,165,0.08);
    }

.data-grid , .my-table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    padding: 10px;
}

    .data-grid tr th , .data-grid tr th:hover  {
        background: #000a59 !important;
        color: #fff !important;
    }

    .data-grid tr th , .my-table tr th {
        padding: 10px 14px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.1px;
        text-transform: uppercase;
        border-bottom: 1.5px solid #e4eaf5;
    }

    .data-grid tbody tr , .my-table thead tr {
        border-bottom: 1px solid #f0f4fa;
        transition: background 0.15s;
    }

        .data-grid tbody tr:hover , .my-table thead tr:hover {
            background: #f7f9fd;
        }

    .data-grid > tbody > tr > td{
        padding: 11px 14px;
        font-size: 13.5px;
        color: #1a2744;
        vertical-align: top
    }

.double-header tr th:not(.double-header tr:first-child th:last-child) {
    text-align: center;
    border-right: 1px solid #fff;
}

.row-num {
    color: #b0bac8 !important;
    font-size: 12px !important;
}

.empty-row td {
    text-align: center;
    color: #a0aab8;
    padding: 2rem;
    font-size: 13.5px;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.badge-active {
    background: #e8f5ee;
    color: #1a7f4b;
}

.badge-inactive {
    background: #f5f0f0;
    color: #a04040;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-active .badge-dot {
    background: #2ecc71;
}

.badge-inactive .badge-dot {
    background: #e74c3c;
}

/* ── Action Buttons ── */
.action-btn {
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.action-edit {
    background: #e8f0fd;
    color: #1E4FA5;
}

    .action-edit:hover {
        background: #d0e0fb;
    }

.action-del {
    background: #fdeaea;
    color: #dc3545;
    margin-left: 5px;
}

    .action-del:hover {
        background: #fbd0d0;
    }

    .editimg{
        width: 25px;
        text-decoration: none
    }

#processMessage {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.8);
    z-index: 999;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .form-body {
        padding: 1.25rem;
    }

    .grid-section {
        padding: 0 1.25rem 1.25rem;
    }

    .grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-input {
        width: 100%;
    }
}


/* From Uiverse.io by RaspberryBee */
/* The switch - the box around the slider */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(182, 182, 182);
    transition: .4s;
    border-radius: 10px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 1.4em;
        width: 1.4em;
        border-radius: 8px;
        left: 0.3em;
        bottom: 0.3em;
        transform: rotate(270deg);
        background-color: rgb(255, 255, 255);
        transition: .4s;
    }

.switch input:checked + .slider {
    background-color: #21cc4c;
}

.switch input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

.switch input:checked + .slider:before {
    transform: translateX(1.5em);
}


.radio-inline, .radio-inline tr, .radio-inline tr td {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-body .page-title{
    color: #1E4FA5 !important;
    margin: 0 !important
}

.form-check{
    padding: 0 !important
}

.modal1{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
}
.modal-content{
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    background: #fff;
}

.card-title{
    font-size: 15px;
    border-bottom: 1px solid #1E4FA5;
    text-align: center;
    padding: 10px;
}

/* From Uiverse.io by alexruix */
.loader {
    position: relative;
    width: 120px;
    height: 90px;
    margin: 0 auto;
}

    .loader:before {
        content: "";
        position: absolute;
        bottom: 30px;
        left: 50px;
        height: 30px;
        width: 30px;
        border-radius: 50%;
        box-shadow: 0 0 2px #fff;
        background: #1a2744;
        animation: loading-bounce 0.5s ease-in-out infinite alternate;
    }

    .loader:after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        height: 7px;
        width: 45px;
        border-radius: 4px;
        animation: loading-step 1s ease-in-out infinite;
    }

@keyframes loading-bounce {
    0% {
        transform: scale(1, 0.7);
    }

    40% {
        transform: scale(0.8, 1.2);
    }

    60% {
        transform: scale(1, 1);
    }

    100% {
        bottom: 140px;
    }
}

@keyframes loading-step {
    0% {
        box-shadow: 0 10px 0 rgba(0, 0, 0, 0), 0 10px 0 #f2f2f2, -35px 50px 0 #f2f2f2, -70px 90px 0 #f2f2f2;
    }

    100% {
        box-shadow: 0 10px 0 #f2f2f2, -35px 50px 0 #f2f2f2, -70px 90px 0 #f2f2f2, -70px 90px 0 rgba(0, 0, 0, 0);
    }
}
.model_form{
    max-height: 400px;
    overflow: scroll;
}

.model_form .data-grid tr td{
    padding: 0px 14px;
}

.fixed-table tbody tr:first-child{
    position: sticky;
    top: 0;
}

.action-class{
    min-width: 100px;
}
.action-class input{
    width: 20px;
    margin: 0 5px;
}

.modal-header{
    background: #1E4FA5;
}
.modal-title{
    color: #fff;
    font-weight: 600;
    font-size: 20px;
}