/* General styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Cairo", serif;
    font-weight: 500;
    max-width: 100%;
    background: url('{{ url_for("static", filename="user_app/images/Untitled design.png") }}') no-repeat center center fixed;
    background-size: cover;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overscroll-behavior: none; /* Prevent browser scroll effects */
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 0;
    background: transparent;
    overflow: hidden; /* Prevent unintended scrolling */
}

.content-wrap {
    flex: 1;
    z-index: 1;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px;
    z-index: 1;
}

.navbar-container {
    background-color: #92163A;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    direction: rtl;
    z-index: 1000;
    position: relative;
}

.navbar-container h5 {
    color: #fff;
}

/* Desktop Navigation */
.desktop-navigation {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start; /* Align items to the left in RTL */
    align-items: center;
    flex-wrap: wrap;
}

.desktop-navigation li {
    display: inline-block;
    position: relative;
    margin: 0 15px; /* Add spacing between items */
}

.logo {
    display: flex;
    justify-content: flex-end; /* Align logo to the right in RTL */
}

img {
    max-width: 100px !important;
    height: auto !important;
}

.button {
    text-decoration: none;
    color: #ffffff;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
    font-weight: 700;
    font-family: "Scheherazade New", serif;
    padding: 10px 15px;
}

.button:hover {
    color: #a07883;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    text-align: right;
    font-family: "Cairo", sans-serif;
    font-weight: 800;
}

.dropdown-content a {
    color: #92163A;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #ff5722;
}

.desktop-navigation li:hover .dropdown-content {
    display: block;
}

/* Hamburger Menu Icon */
.hamburger-menu {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

/* Slide Menu (for mobile) */
.slide-menu {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #92163A;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 60px;
    z-index: 1002;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    overscroll-behavior: none; /* Prevent browser scroll effects */
}

.slide-menu.active {
    display: flex; /* Show the menu when active */
}

.slide-menu .navigation {
    flex-direction: column;
    width: 100%;
    padding: 0;
}

.slide-menu .navigation li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

.slide-menu .button {
    font-size: 18px;
    padding: 15px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.slide-menu .dropdown-content {
    position: static;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    display: none;
}

.slide-menu .navigation li:hover .dropdown-content {
    display: block;
}

.slide-menu .dropdown-content a {
    padding: 10px;
    color: #92163A;
}

/* Menu Backdrop */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: opacity 0.3s ease-in-out;
}

.menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* Footer styles */
footer {
    background-color: #92163A;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    position: relative;
    bottom: 0;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin: 0 10px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ddd;
}

.copyright {
    color: #ffffff;
    font-size: 14px;
    margin-top: 10px;
}

/* Hide potential pagination dots or scroll indicators */
.carousel-indicators,
[class*="pagination-dots"],
[class*="scroll-indicator"],
.dots,
[data-scroll-indicator] {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .desktop-navigation {
        flex-direction: column;
        width: 100%;
    }

    .desktop-navigation li {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .page-container {
        width: 100%;
        min-height: 100vh;
        margin: 0;
    }

    body, html {
        width: 100%;
        overflow-x: hidden;
    }

    .navbar-container, .main-content, footer {
        width: 100%;
        box-sizing: border-box;
    }

    .main-content {
        padding: 10px;
    }

    .navbar-container {
        padding: 5px 10px;
        position: relative;
    }

    /* Hide desktop navigation on mobile */
    .desktop-navigation {
        display: none;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: block;
    }
}