
:root {
    /* الألوان الافتراضية للوضع الفاتح */
    --body-bg-color: #e5ecef;
    --theme-bg-color: #fff;
    --chat-text-bg: #f1f2f6;
    --body-color: #273346;
    --header-color: #273346;
    --msg-message: #969eaa;
    --detail-font-color: #919ca2;
    --button-bg-color: #f0f7ff;
    --button-color: #b9babd;
    --theme-color: #b9babd;
    --settings-icon-color: #c1c7cd;
    --settings-icon-hover: #9fa7ac;
    --msg-date: #c0c7d2;
    --msg-hover-bg: rgba(238, 242, 244, 0.4);
    --active-conversation-bg: linear-gradient(to right, rgba(238, 242, 244, 0.4) 0%, rgba(238, 242, 244, 0) 100%);
    --developer-color: #f9fafb;
    --input-bg: #f8f8fa;
    --input-chat-color: #a2a2a2;
    --border-color: #eef2f4;
    --body-font: "Manrope", sans-serif;
}

.dark-mode {
    --body-bg-color: #27292d;
    --theme-bg-color: #27292d;
    --chat-text-bg: #383b40;
    --body-color: #d1d1d2;
    --header-color: #d1d1d2;
    --msg-message: #b5b7ba;
    --detail-font-color: #919ca2;
    --button-bg-color: #393b40;
    --button-color: #d1d1d2;
    --theme-color: #19212e;
    --settings-icon-color: #7c7e80;
    --settings-icon-hover: #91c5c9;
    --msg-date: #626466;
    --msg-hover-bg: rgba(47, 50, 56, 0.54);
    --active-conversation-bg: linear-gradient(to right, rgba(47, 50, 56, 0.54) 0%, rgba(238, 242, 244, 0) 100%);
    --developer-color: #323336;
    --input-bg: #2f3236;
    --input-chat-color: #6f7073;
    --border-color: #323336;
}

body {
    font-family: var(--body-font);
    background-color: var(--body-bg-color);
    color: var(--body-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: none;
    background-size: cover;
    background-position: center;
    overflow-y: scroll;
    -ms-overflow-style: none; /* إخفاء شريط التمرير في Internet Explorer و Edge */
    scrollbar-width: 0;
}
/* إخفاء شريط التمرير في Chrome و Safari */
body::-webkit-scrollbar {
    display: none;
}
.container {
    margin-top: 120px;
    width: 350px;
    background-color: var(--button-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: none;
    overflow-y: visible;
}

.container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--body-color);
}
.container input[type="text"],
.container input[type="password"],
.container input[type="email"],
.container input[type="tel"],
.container input[type="date"],
.container select {
    width: 100%;
    background-color: var(--button-bg-color);
    padding: 12px;
    margin: 10px 0;
    color: var(--input-chat-color);
    border: 1px solid #ccc;
    border-radius: 25px;
    box-sizing: border-box;
    transition: 0.3s;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.container input[type="text"]:focus,
.container input[type="password"]:focus,
.container input[type="email"]:focus,
.container input[type="tel"]:focus,
.container input[type="date"]:focus,
.container select:focus {
    border-color: #36A1C0;
    outline: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Fix the nationality field */
.country-select {
    width: 100% !important;
    padding: 0 !important;
    border-radius: 25px !important;
    border: 1px solid #ccc !important;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box;
}

.country-select input {
    padding: 12px;
    width: 100% !important;
    box-sizing: border-box;
    border: none !important;
}

.country-select .flag-dropdown {
    border: none !important;
    background-color: transparent;
    padding-left: 5px; /* Adjust for flag alignment */
}

/* Phone number input styling */
.iti {
    width: 100% !important; /* Force full width */
}

.iti input[type="tel"] {
    width: 100%;
    padding: 12px; /* Match other inputs' padding */
    border: 1px solid #ccc;
    border-radius: 25px; /* Match other inputs' border-radius */
    box-sizing: border-box;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Match box-shadow */
}

/* Adjust flag container to align properly */
.iti__flag-container {
    padding-left: 5px; /* Adjust as needed */
}

/* To ensure the country code dropdown doesn't interfere */
.iti__selected-flag {
    margin-left: 0; /* Ensure no margin issues */
    background-color: transparent !important; /* Make background transparent */
    border: none; /* Remove any borders if present */
    box-shadow: none; /* Remove any shadow if present */
}

.container input[type="submit"] {
    color: var(--body-bg-color);
    width: 100%;
    padding: 12px;
    background-color: var(--settings-icon-hover);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.container input[type="submit"]:hover {
    background-color: var(--settings-icon-hover);
}

.container form {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.container form.active {
    display: block;
    opacity: 1;
}

.container .icon {
    text-align: center;
    margin-bottom: 20px;
    font-size: 50px;
    color: var(--settings-icon-hover);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav-buttons button {
    width: 48%;
    background-color: #F08A5D;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
    background-color: #E06A42;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
.container {
    scrollbar-width: none; /* For Firefox */
}
#register-form input[type="submit"] {
    margin-top: 20px; /* Adjust this value to your preference */
}
/* تنسيق الروابط النصية في النموذج */
.container p {
    text-align: center;
    font-size: 14px;
    color: var(--header-color); /* تغيير اللون إلى لون داكن قليلاً */
    margin-top: 20px;
}

/* تنسيق الروابط النصية */
.container p a {
    color: var(--settings-icon-hover); /* استخدام اللون البرتقالي الموجود */
    text-decoration: none; /* إزالة الخط السفلي */
    font-weight: bold;
    transition: color 0.3s ease;
}

/* تغيير لون الرابط عند المرور بالفأرة */
.container p a:hover {
    color: #E06A42; /* لون أغمق قليلاً عند التمرير */
}

/* تنسيق رسائل الخطأ */
.error-message {
    color: #ff4d4f;
    font-size: 0.875em;
    margin-top: 5px;
    display: block;
    /* background-color: #ffe6e6; خلفية خفيفة لإبراز الخطأ */
    padding: 5px 5px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background-color: var(--theme-bg-color);
    color: var(--header-color);
    display: flex;
    align-items: center; 
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.header .logo img {
    width: 60px;
    height: auto;
}

.header h2 {
    color: var(--header-color);
    font-size: 24px;
    font-weight: 600;
    margin-left: 10px;
    font-family: var(--body-font);
}

.header .user-settings {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 50px;
    gap: 14px; /* مسافة بين الأيقونات */
    z-index: 1001; /* ضمان عدم الاختفاء تحت عناصر أخرى */
}

.header .user-settings .dark-light,
.header .user-settings .settings {
    color: var(--settings-icon-color);
    width: 22px;
    height: 22px;
    margin-left: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header .user-settings .dark-light:hover,
.header .user-settings .settings:hover {
    color: var(--settings-icon-hover);
}
