:root {
    --primary-color: white;
    --secondary-color: #dadada;
    --text-color: black;
    --indigo-text: #4b0082;
}

.darkmode {
    --primary-color: black;
    --secondary-color: rgb(22, 22, 22);
    --text-color: white;
    --indigo-text: #6800b3;
}

@font-face {
    font-family: 'Microsoft Yi Baiti';
    src: url('../fonts/Microsoft-Yi-Baiti.woff2') format('woff2'),
       url('../fonts/Microsoft-Yi-Baiti.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Optional: improves loading behavior */
}

html {
    scroll-behavior: smooth;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Global Styling */
body {
    font-family: 'Urbanist', serif !important;
    /* Default font for English */
}

body[dir="rtl"] {
    font-family: 'Noto Naskh Arabic', serif !important;
    /* Font for Arabic */
}

.custom-dropdown {
    background-color: var(--primary-color) !important;
    border: none;
}

.dropdown-item {
    color: var(--text-color) !important;
}

/* Change dropdown items on hover */
.custom-dropdown .dropdown-item:hover {
    background-color: var(--indigo-text);
    color: white !important;
}

/* Specific color for logout */
.custom-dropdown .logout-item {
    color: #dc3545 !important;
}

.custom-dropdown .logout-item:hover {
    background-color: #dc3545;
    color: white !important;
}

#scrollTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 999;
    font-size: 18px;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px;
    transition: ease-in-out 0.3s all;
}

#scrollTop:hover {
    font-size: 23px;
}

#scrollTop svg {
    color: var(--text-color);
}

input {
    margin-bottom: 0.5rem;
    padding: 0.50rem;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: ease-in-out 0.3s all;
    background: var(--secondary-color);
    caret-color: var(--text-color);
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--secondary-color) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    /* Adjust text color */
    border-color: var(--indigo-text);
}

.rounded-circle {
    object-fit: cover;
    width: 32px;
    height: 32px;
}

input:focus {
    border-color: var(--indigo-text);
    outline: none;
}

.coloring {
    background: var(--secondary-color);
    color: var(--text-color);
}

.cardBackground {
    background: var(--primary-color);
    width: 100%;
    transition: ease-in-out 0.3s all;
}

.textColor {
    color: var(--text-color);
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    text-decoration: none;
    border: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.profileColor {
    color: var(--text-color);
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    border: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.menu {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Specific color for logout */
.custom-dropdown .logout-item {
    color: #dc3545 !important;
}

.custom-dropdown .logout-item:hover {
    background-color: #dc3545;
    color: white !important;
}

.indigoDarkMode {
    color: var(--indigo-text);
    text-decoration: none;
}

.buttonIndigo {
    background: #4b0082;
    border-radius: 50px;
    transition: ease-in-out 0.3s all;
}

.buttonIndigo:hover {
    background: #6800b3;
}

.modal-body {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 5px;
}

#themeSwitcher {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

#themeSwitcher svg {
    fill: white;
}

#themeSwitcher svg:last-child {
    display: none;
}

.darkmode #themeSwitcher svg:first-child {
    display: none;
}

.darkmode #themeSwitcher svg:last-child {
    display: block;
}

.pageContent {
    display: flex;
}

/* Main Content Styles */
.mainCntnt {
    margin: auto;
    padding: 0 200px;
    height: 100%;
}

.main-content {
    background-color: var(--primary-color);
    margin: 50px auto;
    height: auto;
    padding: 50px;
}

/* Toggle Button */
.toggle-btn {
    cursor: pointer;
    padding: 20px;
    display: flex;
    align-items: center;
    border: none;
    border-bottom: 1px solid var(--indigo-text);
}

.sidebar.collapsed+.toggle-btn {
    left: 90px;
}

.active {
    background: var(--indigo-text);
}

.sidebar ul .active a {
    color: white;
}

.sidebar ul .active a:hover {
    color: black;
}

.form-select {
    cursor: pointer;
}

#themeSwitcher {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

#themeSwitcher svg {
    fill: var(--text-color);
}

#themeSwitcher svg:last-child {
    display: none;
}

.darkmode #themeSwitcher svg:first-child {
    display: none;
}

.darkmode #themeSwitcher svg:last-child {
    display: block;
}

.shadowBox {
    filter: drop-shadow(5px 0 0.4em rgba(0, 0, 0, 0.2));
}

.navContainer {
    background-image: url(../pics/backgroundMain.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: 0 25px;
    border-radius: 20px;
}

.navbar-toggler {
    border: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler svg {
    fill: var(--text-color);
}

/* Navbar */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1rem;
}

nav .indigoLogo {
    width: 70px;
    margin-left: 15px;
    object-fit: contain;
    overflow: visible !important;
    fill: var(--text-color);
}

.nav-links-middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    font-size: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mainContent {
    margin: 30px 150px;
    height: 100%;
    align-items: center;
    color: white;
}

.mainContent h1 {
    font-size: 3rem;
    font-weight: bold;
}

nav div .nav-item {
    margin: 0 5px;
    padding: 0 12px;
    transition: ease-in-out 0.3s all;
    border: 1px solid transparent;
    border-radius: 1000px;
}

nav div .nav-item .nav-link {
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-color);
}

nav ul li:hover,
nav ul li:focus-within {
    border-color: var(--text-color);
    cursor: pointer;
}

.joinUsLink {
    font-family: "Urbanist", serif;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 1000px;
    border: 1px solid var(--text-color);
    transition: ease-in-out 0.3s all;
}

.joinUsLink:hover,
.joinUsLink:focus-within {
    background-color: var(--text-color);
    color: var(--primary-color);
    cursor: pointer;
}

.cntct {
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 1000px;
    background: none;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    transition: ease-in-out 0.3s all;
}

.cntct:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
    cursor: pointer;
}

.contactUs {
    background-color: #4b0082;
    display: flex;
    justify-content: space-evenly;
    padding: 70px;
}

.contactUs a {
    text-decoration: none;
}

.FlexContent {
    align-self: end;
}

.small {
    font-size: 0.8rem;
    padding: 10px 0;
}

.bold {
    font-size: 2.5rem;
    font-weight: bold;
}

.ContactForm {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.ContactForm label {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

.inputClasses {
    margin-bottom: 0.5rem;
    padding: 0.50rem;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: ease-in-out 0.3s all;
    background: var(--secondary-color);
}

.inputClasses:focus {
    border-color: var(--indigo-text);
    outline: none;
}

.ContactForm button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: black;
    color: white;
    cursor: pointer;
    transition: ease-in-out 0.3s all;
}

.ContactForm button:hover {
    background-color: white;
    color: black;
}

/* Footer */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 5rem;
}

.footerContainer {
    margin: 0.5rem 0;
    color: rgba(209, 209, 209, 0.548);
}

.footerContent {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footerContent a {
    margin: 20px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    transition: ease-in-out 0.3s all;
}

.footerContent p {
    margin: 20px;
}

.footerContent i {
    transition: ease-in-out 0.3s all;
    font-size: 1.3rem;
    cursor: pointer;
}

.footerContent a:hover {
    font-size: 1.1rem;
}

.footerContent i:hover {
    font-size: 1.5rem;
}


/* Mobile First Approach */
@media screen and (max-width: 1500px) {
    .cntct {
        text-align: left;
    }
}

@media screen and (max-width: 990px) {
    nav {
        margin: 0;
    }

    .nav-links-middle {
        position: relative;
        left: 0;
        transform: none;
    }
}

@media screen and (max-width: 768px) {
    .contactUs {
        display: block;
        padding: 30px;
    }

    .sidebar {
        display: none;
    }

    .small {
        font-size: clamp(0.5rem, 0.375rem + 0.533vw, 0.875rem);
    }

    .bold {
        font-size: clamp(1.5rem, 1.167rem + 1.422vw, 2.5rem);
    }

    .footerContent {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footerContent a {
        margin: 10px;
    }

    .footerContent p {
        display: none;
    }

    .main-content {
        width: 100%;
        margin: 0;
    }

    .main-content h3 {
        font-size: clamp(1rem, 0.667rem + 0.889vw, 1.5rem);
    }

    .mainCntnt {
        padding: 25px;
    }
    
    #themeSwitcher {
        padding: 15px 0 0 0;
    }
}