* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Kufi Arabic", sans-serif;
    direction: rtl;
}

html {
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
}

body {
    width: 100%;

}

.og-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(/images/Web_Background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.25;
    z-index: -1;
    overflow: hidden;
}

/* Style for the whole scrollbar */
::-webkit-scrollbar {
    z-index: 99;
    width: 10px;
    /* Adjust the width of the scrollbar */
    height: 10px;
    /* Adjust the height for horizontal scrollbar */
}

/* Style for the track (the area the thumb moves within) */
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Light gray color */
    border-radius: 10px;
}

/* Style for the thumb (the draggable part of the scrollbar) */
::-webkit-scrollbar-thumb {
    background-color: #888;
    /* Darker gray color */
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    /* Optional border around the thumb */
}

/* Style when hovering over the thumb */
::-webkit-scrollbar-thumb:hover {
    background-color: #555;
    /* Darker color on hover */
}

/* Style for the corner (where the horizontal and vertical scrollbars meet) */
::-webkit-scrollbar-corner {
    background-color: #f1f1f1;
}


header {
    background-color: rgba(248, 249, 250, 0.8);
    padding: 5px 20px;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.just-moving-header {
    /* margin-top: 80px; */
    height: 40px;
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-login-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    text-align: right;
    z-index: 1001;
}


.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}


.logo img {
    width: 130px;
}


.nav-header ul {
    padding-right: 100px;
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-header ul li {
    position: relative;
}

.nav-header ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.nav-header ul li a:hover {
    color: #007bff;
}



.nav-links-menu {
    display: none;
    background-color: #efefef !important;
    padding: 5px 15px !important;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 3px 4px 7px 0px rgba(0, 0, 0, 0.3);
}

.nav-links-menu ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.nav-links-menu .dropdown-content-header {
    right: 111%;
    top: 0;
    width: fit-content;
    background-color: #efefef;
    border-radius: 6px;
    padding: 12px;
}

.nav-links-menu .show {
    display: flex !important;
    flex-direction: column;
}

.nav-links-menu .nav-links-menu-a {
    margin-bottom: 10px;
}


.dropdown-content-header {
    display: none;
    position: absolute;
    left: 0;
    /* Position left edge at 50% of the parent */
    list-style: none;
    background-color: #f8f9fa;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    z-index: 1200;
    text-align: center;
    min-width: 142px;

}

.dropdown-content-header.show {
    display: block;
}


.dropdown-user-header {
    opacity: 0;
    transform: translateY(-10px);
    /* تصعد للأعلى قليلاً */
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
    position: absolute;
    right: 25px;
    top: 40px;
    padding: 10px 0;
    z-index: 1200;
    pointer-events: none;
}

.dropdown-user-header.show {
    opacity: 1;
    transform: translateY(0);
    min-width: 173px;
    /* تهبط في مكانها */
    visibility: visible;
    pointer-events: auto;
}

.dropdown-user-header-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropdown-user-header-btn {
    background-color: #efefef !important;
    padding: 5px 15px !important;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 3px 4px 7px 0px rgba(0, 0, 0, 0.3);

}

.user-name {
    font-weight: 700;
}

.dropdown-user-header-btn i {
    font-size: 15px;
    margin-left: 8px;
}

.profile-btn i {
    color: #1a73a4;
}

.signOut-btn i {
    color: #a41a1a;
}

.profile-btn:hover {
    color: #1a73a4;
}

.signOut-btn:hover {
    color: #a41a1a;
}


.user-dropdown {
    position: relative;
    padding-left: 5px !important;
    cursor: pointer !important;
    border-radius: 16px;
}

.user-dropdown.active {
    background-color: #e3e3e3;
}

.user-dropdown:hover {
    background-color: #e3e3e3;
}


nav ul li .dropdown-content-header a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    width: 100%;
}

.dropdown-content-header li {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

nav ul li .dropdown-content-header a:hover {
    background-color: #007bff;
    color: white;
}

.dropdown-content-header li:hover {
    cursor: pointer;
    background-color: #007bff;
    color: white;
}



.dropdown-header:hover {
    user-select: none;
    cursor: default;
}

.dropdown-header.active {
    color: #007bff !important;
}

.action-container-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-book-left {
    display: block;
    box-sizing: border-box;
    direction: rtl;
    gap: 5px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    color: #007bff;
    font-size: 18px;
    text-decoration: none;
    overflow: hidden;
    transition: background-color 0.3s, border 0.3s;
}

.social-icon:hover {
    border: 2px solid #007bff;
}

.login-button {
    display: flex;
    align-items: center;
}

#loginBtn {
    background-color: #007bff;
    color: white;
    padding: 5px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 30px;
    max-height: 30px;
    border-radius: 10px;
}

#loginBtn:hover {
    background-color: #0056b3;
}

.menu-btn-header {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.phone-container {
    display: grid;
    grid-template-columns: 22% 75%;
    direction: ltr;
    column-gap: 3%;

}

.phone-reg-tag {
    user-select: none;
    cursor: default;
    color: #757575;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    direction: ltr;
}



@media (max-width: 768px) {
    nav ul {
        padding-right: 10px;
    }

    .social-book-left {
        gap: 3px;
    }

    #loginBtn {
        padding: 5px 8px;
        font-size: 12px;
    }

    .logo img {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .container-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-btn-header {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #007bff;
        cursor: pointer;
        margin-right: 10px;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        background-color: rgba(248, 249, 250, 0.9);
        top: 90px;
        left: 0;
        z-index: 1000;
    }

    nav.show {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style-type: none;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 10px;
        display: block;
        text-align: center;
    }

    nav ul li .dropdown-content-header {
        min-width: auto;
        top: auto;
        margin: 0 auto;
        width: 100%;
    }

    nav ul li .dropdown-content-header a {
        padding: 10px 15px;
        font-size: 12px;
    }

    nav ul li.show .dropdown-content-header {
        display: block;
    }

    .logo img {
        width: 100px;
    }

    .action-container-header {
        gap: 3px;
        /* margin-right: 20px; */
    }

    .social-icon {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    #loginBtn {
        padding: 5px 8px;
        font-size: 10px;
        width: 100%;
        max-width: 150px;
        min-height: 30px;

    }
}


@media (max-width: 383px) {
    .user-name {
        display: inline-block;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dropdown-user-header {
        right: -2px;
    }

    .dropdown-content-header {
        min-width: 102px;
    }
}

.header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

button:not(.section-buttons) {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    background-color: #ccc;
}

/*
  button.active:not(.section-buttons) {
    background-color: #007bff;
    font-weight: bold;
    border-bottom-color: #0056b3;
  }

   button:hover :not(.section-buttons){
    background-color: #0056b3;
    color: white;
  } */

.notification {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    font-size: 16px;
    z-index: 1000;
    min-width: 300px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}


.button-header {
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.button-header:disabled {
    background-color: #ccc;
}

.p-header {
    margin-top: 20px;
}

.p-header a {
    color: #007bff;
    cursor: pointer;
}


input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.password-container {
    position: relative;
    display: block;
}

/* Tooltip box */
.password-tooltip {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 11px;
}

.password-tooltip ul {
    list-style: circle;
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

.password-tooltip ul li {
    margin-bottom: 5px;
}

/* Valid rule */
.password-tooltip ul li.valid {
    color: green;
}

/* Invalid rule */
.password-tooltip ul li.invalid {
    color: red;
}

/* Show the tooltip */
.password-container:focus-within .password-tooltip {
    display: block;
}

.record-field-reg {
    display: none;
    flex-flow: column;
}

.record-field-reg.show {
    display: flex;
}

.burger {
    position: relative;
    width: 40px;
    height: 30px;
    background: transparent;
    cursor: pointer;
    display: none;
}

.burger input {
    display: none;
}

.burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: black;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
}

.burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.burger input:checked~span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 5px;
}

.burger input:checked~span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
}

.burger input:checked~span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 28px;
    left: 5px;
}

.avatar {
    width: 35px;
    height: 35px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}


.flex-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-button .button-text {
    display: inline;
}

.login-button .button-icon {
    display: none;
    font-size: 18px;
}

@media (max-width: 1104px) {
    .web-nav-header {
        display: none;
    }

    .nav-links-menu {
        display: block;
    }
}

@media (max-width: 1103px) {
    .action-container-header {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-end;
    }

    .login-button {
        display: none;
    }

    .login-button-m {
        display: block !important;
    }
}




/* Modal container */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1300;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

/* Modal content */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

/* Modal visible state */
.modal.show {
    display: flex;
    opacity: 1;
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* Modal buttons */
.modal-btn {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.logout-modal-btns-container {
    display: flex;
}

.logout-modal-btn-confirm {
    background-color: #dc3545 !important;
    color: white;
}

.logout-modal-btn-cancel {
    background-color: #6c757d !important;
    color: white;
}


.popup-header-sign {
    gap: 10px;
}

.popup-header-btn {
    background-color: #007bff !important;
    color: white !important;
    /* padding: 5px 15px !important;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 3px 4px 7px 0px rgba(0, 0, 0, 0.3); */
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
}

#loginButton {
    border-radius: 5px;
}

#signupButton {
    border-radius: 5px;
}

#loginSubmit {
    position: relative;
    background-color: #007bff !important;
    color: white !important;
    border-radius: 5px;
}

#goToSignup {
    color: #007bff !important;
    text-decoration: none;
    font-weight: bold;

}

#signupSubmit {
    position: relative;
    background-color: #007bff !important;
    color: white !important;
    border-radius: 5px;
}

#verifySubmit {
    position: relative;
    background-color: #007bff !important;
    color: white !important;
    border-radius: 5px;
}

/* Loader styling */
.loader {
    display: none;
    position: absolute;
    top: 12px;
    right: 45%;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ensure buttons remain styled during loading */
#loginSubmit:disabled,
#signupSubmit:disabled,
#verifySubmit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.popup-header-btn.active {
    color: #007bff !important;
    text-decoration: none;
    font-weight: bold;
    background-color: #fff !important;
    border: #007bff solid 1px !important;
    outline: none;
}



.input-container {
  position: relative;
}

.input-container input {
  outline: none;
  border: 1px solid #ccc;
}

.input-container input {
  /* background-color: #fff;
  padding: 1rem; */
  padding-right: 3rem;
  /* font-size: 0.875rem;
  line-height: 1.25rem;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); */
}

.input-container span {
  display: grid;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  place-content: center;
  cursor: pointer;
}

.input-container span svg {
  color: #9CA3AF;
  width: 1rem;
  height: 1rem;
}


#password-login-eye-slash {
  display: none;
}



/* oldOperation-alert */
.oldOperation-alert {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(to left, #65bbf5 50%, #2b96d5 50%);
    background-size: 200% 100%;
    background-position: right bottom !important;
    border-left: 5px solid #2b96d5;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 320px;
    direction: rtl;
    cursor: pointer !important;
    transition: background-position 0.5s ease;
}
.oldOperation-alert img{
    width: 54px;
}
.oldOperation-alert p{
    margin: 0px 10px;
}
.oldOperation-alert i{
    font-size: 20px;
}
.oldOperation-alert:hover{
    background-position: left bottom !important;
}

