/* =========================================================
   6 October Academy — Platform overrides for the new theme
   Loaded AFTER main.css to adapt shared components
   ========================================================= */

:root {
    --app-error: #CA1117;
}

/* ---------------- Header ---------------- */
.dropdown-head-flag a {
    margin: 0 7px;
    font-family: "tjMd";
}

.dropdown-head-flag a img {
    width: 21px;
    height: 15px;
    margin: 0 1px;
    vertical-align: middle;
}

.top-bar-time i,
.top-bar-email i {
    vertical-align: middle;
}

.side-menu #openNav {
    cursor: pointer;
}

.logo-side .open-side i {
    font-size: 24px;
    color: var(--main-color);
}

/* -------- Login-style selects (match .sec-fo input look) -------- */
.sec-fo .bootstrap-select > button.btn.dropdown-toggle {
    width: 100%;
    height: 55px;
    background-color: #fff !important;
    border: 2px solid rgb(242, 242, 242);
    border-radius: 15px;
    box-shadow: none !important;
    padding: 0 20px;
    font-family: "tjMd";
    font-size: 16px;
    color: #333;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sec-fo .bootstrap-select > button.btn.dropdown-toggle.bs-placeholder,
.sec-fo .bootstrap-select > button.btn.dropdown-toggle.bs-placeholder:hover,
.sec-fo .bootstrap-select > button.btn.dropdown-toggle.bs-placeholder:focus {
    color: var(--text-color);
}

.sec-fo .bootstrap-select > button.btn.dropdown-toggle:focus {
    border-color: rgb(50 54 130 / 60%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(50 54 130 / 60%) !important;
}

.sec-fo .bootstrap-select .dropdown-menu {
    border-radius: 10px;
    border: 1px solid rgb(242, 242, 242);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sec-fo .bootstrap-select .dropdown-menu li a:hover,
.sec-fo .bootstrap-select .dropdown-menu li.selected a {
    background-color: rgba(50, 54, 130, 0.08);
    color: var(--main-color);
}

/* spacing between form groups inside the login-style card */
.sec-fo .form-group {
    margin-bottom: 22px;
}

/* ---------------- Validation errors ---------------- */
label.error {
    display: block;
    color: var(--app-error);
    font-family: "tjMd";
    font-size: 14px;
    margin-top: 6px;
}

.required {
    color: var(--app-error);
    font-weight: 900;
}

/* ---------------- Submit button loading state ---------------- */
.app-btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

.app-btn-loading::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    animation: appSpin 0.7s linear infinite;
}

html[dir="ltr"] .app-btn-loading::after {
    margin-right: 0;
    margin-left: 10px;
}

@keyframes appSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------- Bootstrap 3 centered modal ---------------- */
.modal.app-modal {
    text-align: center;
    padding: 0 !important;
}

.modal.app-modal::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal.app-modal .modal-dialog {
    display: inline-block;
    text-align: right;
    vertical-align: middle;
    max-width: 600px;
}

html[dir="ltr"] .modal.app-modal .modal-dialog {
    text-align: left;
}

.modal-content {
    border: 0;
    border-radius: 13px;
    overflow: hidden;
}

.app-modal .modal-header {
    background-color: var(--main-color);
    padding: 15px 25px;
}

.app-modal .modal-title {
    color: #fff;
    font-family: "tjBold";
    font-size: 18px;
}

.app-modal .modal-header .close {
    color: #fff;
    opacity: 0.9;
    text-shadow: none;
}

.app-modal .modal-header .close:hover {
    opacity: 1;
}

.app-modal .modal-body {
    padding: 25px;
}

.app-modal .modal-footer {
    border-top: 1px solid #ececec;
    padding: 15px 25px;
}

.app-gold-btn {
    min-width: 170px;
    border-radius: 20px;
    background-color: var(--sec-color);
    border: 1px solid transparent;
    color: #fff;
    font-family: "tjBold";
    transition: all 0.3s ease-in-out;
}

.app-gold-btn:hover,
.app-gold-btn:focus {
    background-color: #fff;
    color: var(--sec-color);
    border-color: var(--sec-color);
}

/* ---------------- Receipt review table ---------------- */
.review-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

.review-table th,
.review-table td {
    border: 1px solid #ececec;
    padding: 10px 12px;
    font-size: 14px;
    text-align: right;
}

.review-table th {
    background-color: #f5efe2;
    width: 35%;
    font-family: "tjMd";
    color: var(--main-color);
}

html[dir="ltr"] .review-table {
    direction: ltr;
}

html[dir="ltr"] .review-table th,
html[dir="ltr"] .review-table td {
    text-align: left;
}

/* ---------------- Back to top ---------------- */
#appScrollTop {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background-color: var(--sec-color);
    color: #fff;
    font-size: 17px;
    display: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
}

#appScrollTop.show {
    display: block;
}

#appScrollTop:hover {
    opacity: 0.85;
}

/* ---------------- Footer: single-column quick links (match reference) ---------------- */
.fast-link ul.rebi li {
    width: 100%;
}
