/* Font Face Declarations */
@font-face {
    font-family: "Expo Arabic";
    src: url("../../expo-font/ExpoArabicBook.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Expo Arabic";
    src: url("../../expo-font/ExpoArabicBold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Global Rules  */
* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

input::placeholder {
    font-size: 14px !important;
}

@media (max-width: 768px) {
    input::placeholder {
        font-size: 12px !important;
    }
}

html,
body,
* {
    font-family: "Expo Arabic", Arial, sans-serif !important;
}

/* Unified radio color across auth pages */
input[type="radio"] {
    accent-color: #340773;
    /* primary purple */
}

.loading {
    background-color: #340773;
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    overflow: hidden !important;
    z-index: 200000;
}

.loading>div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    overflow: hidden !important;
    z-index: 200000;
}

[dir="rtl"] .loading>div {
    flex-direction: row-reverse;
}

[dir="ltr"] .loading>div {
    flex-direction: row;
}

.loading>div>.logo {
    animation: fromRight 1s ease-in-out;
}

.loading>div>.name {
    animation: fromLeft 1s ease-in-out;
}

.login {
    >div {
        padding: 50px 70px;
    }

}

@media (max-width: 1024px) {
    .login {
        >div {
            padding: 30px 40px;
        }

    }
}

@media (max-width: 768px) {
    .login {
        >div {
            padding: 20px;
        }

    }
}

.forma {
    position: relative;
    background-color: #340773 !important;
}

.forma::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f7f8;
    z-index: 1;
    animation: fillbg 1.5s ease-in-out forwards;
}

@keyframes fillbg {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Owl Carousel 2 */
owl-carousel {
    display: block !important;
}

/* Carousel container - use flexbox column to stack dots below */
.owl-carousel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.owl-carousel .owl-stage-outer {
    border-radius: 1.5rem;
    /* match rounded-3xl */
    overflow: hidden;
    width: 100%;
    order: 1;
    /* Images first */
}

.owl-carousel .owl-stage,
.owl-carousel .owl-item,
.owl-carousel .item {
    border-radius: inherit;
}

.owl-carousel .item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.owl-carousel div.item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 40.4%, #340773 100%);
    z-index: 1000;
}

/* Position dots below the carousel */

.owl-carousel .owl-dots {
    text-align: center;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    width: 100%;
}

@media (max-width: 975px) {
    .owl-carousel .owl-dots {
        bottom: 120px;
    }
}

/*    .owl-carousel .owl-dots {
        text-align: center !important;
        position: absolute !important;
        bottom: 80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1001 !important;
        width: 100% !important;
    }*/

@media (max-width: 768px) {
    .owl-carousel .owl-dots {
        bottom: 40px !important;
    }
}

.owl-carousel .owl-dots .owl-dot {
    background: white !important;
    border-radius: 50% !important;
    width: 8px;
    height: 8px;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
}

@media (max-width: 768px) {
    .owl-carousel .owl-dots .owl-dot {
        width: 6px;
        height: 6px;
        margin: 0 4px !important;
    }

    .owl-carousel .owl-dots {
        margin-top: 1rem !important;
    }
}

.owl-carousel .owl-dots .owl-dot>span {
    display: none !important;
}

.owl-carousel .owl-dots .owl-dot.active {
    background: #ffd700 !important;
}

.owl-carousel .owl-item {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.owl-carousel .owl-item.active {
    opacity: 1;
}

/* Keyframes Animations */
@keyframes fromRight {
    from {
        transform: translateX(600%) rotate(-180deg);
    }
}

@keyframes fromLeft {
    from {
        transform: translateX(-400%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Language Selector Positioning */
[dir="rtl"] .language-btn {
    left: 1.5rem;
    right: auto;
}

[dir="ltr"] .language-btn {
    right: 1.5rem;
    left: auto;
}

/* Link Hover Effects */
a:hover {
    text-decoration: none;
}

/* Modal slide-in from right */
.modal-card {
    transform: translateX(40px);
    animation: slideInRtl 0.5s ease-out forwards;
}

@keyframes slideInRtl {
    from {
        transform: translateX(400%);
    }

    to {
        transform: translateX(0);
    }
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

@media (max-width: 768px) {
    .toggle-switch {
        width: 36px;
        height: 22px;
    }
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

[dir="rtl"] .toggle-label:before {
    right: 3px;
}

[dir="ltr"] .toggle-label:before {
    left: 3px;
}

@media (max-width: 768px) {
    .toggle-label:before {
        height: 14px;
        width: 14px;
        bottom: 4px;
    }
}

.toggle-input:checked+.toggle-label {
    background-color: #340773;
}

.toggle-input:checked+.toggle-label:before {
    transform: translateX(20px);
}

@media (max-width: 768px) {
    .toggle-input:checked+.toggle-label:before {
        transform: translateX(13px);
    }
}

/* RTL Support for Toggle Switch */
[dir="rtl"] .toggle-input:checked+.toggle-label:before {
    transform: translateX(-20px);
}

@media (max-width: 768px) {
    [dir="rtl"] .toggle-input:checked+.toggle-label:before {
        transform: translateX(-13px);
    }
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .toggle-slider:before {
    right: 3px;
}

[dir="ltr"] .toggle-slider:before {
    left: 3px;
}

@media (max-width: 768px) {
    .toggle-slider:before {
        height: 14px;
        width: 14px;
        bottom: 4px;
    }
}

.toggle-input:checked+.toggle-label .toggle-slider {
    background-color: #340773;
}

.toggle-input:checked+.toggle-label .toggle-slider:before {
    transform: translateX(20px);
}

@media (max-width: 768px) {
    .toggle-input:checked+.toggle-label .toggle-slider:before {
        transform: translateX(17px);
    }
}

[dir="rtl"] .toggle-input:checked+.toggle-label .toggle-slider:before {
    transform: translateX(-20px);
}

@media (max-width: 768px) {
    [dir="rtl"] .toggle-input:checked+.toggle-label .toggle-slider:before {
        transform: translateX(-17px);
    }
}

/* RTL Support for Toggle Slider */
/* [dir="rtl"] .toggle-input:checked + .toggle-label .toggle-slider:before {
  transform: translateX(-20px);
}
@media (max-width: 768px) {
  [dir="rtl"] .toggle-input:checked + .toggle-label .toggle-slider:before {
    transform: translateX(-17px);
  }
} */

/* Feature Checkbox Styles */
.feature-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #340773;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.feature-checkbox:checked {
    background-color: #340773;
    border-color: #340773;
}

.feature-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.feature-checkbox:hover {
    border-color: #5a0a9c;
    box-shadow: 0 0 0 2px rgba(52, 7, 115, 0.1);
}

.feature-checkbox:checked:hover {
    background-color: #5a0a9c;
    border-color: #5a0a9c;
}

/* Hide default placeholder of empty time inputs (Edge/Chrome) */
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    color: transparent;
}

input[type="time"]:focus::-webkit-datetime-edit-fields-wrapper,
input[type="time"]:valid::-webkit-datetime-edit-fields-wrapper {
    color: inherit;
}

/* Firefox */
input[type="time"]::-moz-placeholder {
    opacity: 0;
}

/* Hide up/down spinner in some UAs */
input[type="time"]::-webkit-inner-spin-button {
    display: none;
}