@font-face {
    font-family: "Tajawal-Regular";
    src: url(../fonts/Tajawal-Medium.ttf);
}

@font-face {
    font-family: "simplified-arabic";
    src: url(../fonts/ArbFONTS-Simplified-Arabic.ttf);
}


html[dir="rtl"] body {
    margin: 0;
    font-family: "Tajawal-Regular", Poppins, Helvetica, "sans-serif";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #3F4254;
    text-align: right;
    background-color: #ffffff;
}


body::-webkit-scrollbar {

    width: 12px;
    /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
    background: #dddd;
    /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
    background-color: #000000;
    /* color of the scroll thumb */
    border-radius: 20px;
    /* roundness of the scroll thumb */
    border: 3px solid #dddd;
    /* creates padding around scroll thumb */
}

#load {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: block;
    opacity: 0.8;
    z-index: 100000;
    background-color: #fff;
    z-index: 199;
    text-align: center;
}

#loading-image {
    position: absolute;
    top: 50%;
    z-index: 200;
    right: 50%;
    z-index: 200;
}

label.error {
    color: red;
    margin-top: 10px;
}

fieldset {
    padding: 20px !important;
    border: 1px solid #ebedf2 !important;
    margin-bottom: 50px
}

legend {
    width: auto;
    position: relative;
    top: -30px;
}

legend label {
    background: #FFF;
    display: block;
    text-align: right;
    font-size: 15px;
    font-weight: bold !important;
    width: auto;
    padding: 0 10px;
}

.aside-menu .menu-item .menu-link.active {
    transition: color 0.2s ease, background-color 0.2s ease;
    background-color: #19204D;
    color: #ffffff;
}


/*start form */



.fild {
    background: #f8fafb;
    text-align: right;
    color: 333131;
    border-radius: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    padding: 10px 10px;
    cursor: move;
    font-size: 13px;
    margin-bottom: 20px;
    user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    padding-bottom: 30px;
    font-size: 15px;
    padding-bottom: 0;
    position: relative;
}

.fileds {
    margin-top: 20px;
}

.fileds_type .btn {
    margin-top: 30px;
}

.btn-remove {
    position: absolute;
    top: -12px;
    left: -14px;
    z-index: 1;
    cursor: pointer;
}

/*end form */

#map {
    width: 100%;
    height: 400px;
}

.login .login-section {
    background: linear-gradient(322deg, #DB48F7 0%, #6F0BD1 0%);
    padding: 1rem;
    position: relative;
    flex-direction: column;
}

.login .login-section::before {
    width: 275px;
    height: 165px;
    position: absolute;
    content: "";
    background-image: url(../media/edkd/bg-login-1.png);
    background-size: 100% 100%;
    top: 0px;
    right: 0px;
}

.login .login-section::after {
    width: 375px;
    height: 200px;
    position: absolute;
    content: "";
    background-image: url(../media/edkd/bg-login-2.png);
    background-size: 100% 100%;
    bottom: 0px;
    left: 0px;
}

.login .login-form {
    border-radius: 15px;
}

.btn.btn-primary {
    color: #FFFFFF;
    background-color: #922DBF;
    border-color: #922DBF;
}

.btn.btn-primary:hover {
    color: #FFFFFF;
    background-color: #5a1a75;
    border-color: #5a1a75;
}

.gender-box {
    display: flex;
    align-items: center;
}

.gender-icon {
    font-size: 24px;
    margin-right: 8px;
}

.female-icon {
    color: #ff69b4;
    /* Pink for female */
}

.male-icon {
    color: #1e90ff;
    /* Blue for male */
}

.percentage {
    font-size: 24px;
    font-weight: bold;
}

.divider {
    border-left: 1px solid #ddd;
    height: 50px;
    margin: 0 20px;
}

.divider2 {
    border-left: 1px solid #ddd;
    height: 260px;
    margin: 0 20px;
}

.card-custom {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-block;
}

.circle-red {
    background-color: #ff4d4d;
    /* Red */
}

.circle-yellow {
    background-color: #ffc107;
    /* Yellow */
}

.circle-green {
    background-color: #28a745;
    /* Green */
}

.user-count {
    font-size: 1.2rem;
    font-weight: bold;
}

.total-users {
    font-size: 1rem;
    color: #6c757d;
}

.stat-card {
    min-width: 150px;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.country-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    height: 100%;
}

/* Header Section */
.country-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.country-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.country-title {
    font-size: 25px;
    font-weight: bold;
    margin: 0;
    flex-grow: 1;
    /* text-align: left; */
}

.arrow-icon {
    font-size: 16px;
    color: #999;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status Indicators */
.status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.status-indicator .dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff4d4d;
}

.dot.yellow {
    background-color: #ffcc00;
}

.dot.green {
    background-color: #33cc33;
}

.status-text {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

/* Map and Total Users Section */
.map-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.map-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    text-align: center;
    margin-top: 8px;
}

.country-total-users {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.user-label {
    font-size: 12px;
    color: gray;
}

/* Center the chart container */
.chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Style for the center text inside the chart */
.chart-container .center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Style for the legend */
.legend-container {
    margin-left: 30px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.legend-color {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    margin-right: 8px;
}

.legend-label {
    flex-grow: 1;
    font-weight: bold;
}

.bg-primary {
    background-color: #922DBF !important;
}


#map {
    width: 90%;
    height: 500px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.gm-style .custom-info-window {
    position: relative;
    top: -32px;
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #007BFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ccc;
}

.table-container {
    max-width: 500px;
    margin: 20px auto;
}

@media (max-width: 991.98px) {
    .header-tablet-and-mobile-fixed .header {
        background-color: #f7f7f9;
    }
}

table.dataTable th {
    white-space: normal !important;
    word-wrap: break-word;
}



table.dataTable th {
    font-size: 12px;
}


.password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* في حالة LTR (إنجليزي) */
[dir="ltr"] .password-toggle {
    right: 0.75rem;
}

/* في حالة RTL (عربي) */
[dir="rtl"] .password-toggle {
    left: 0.75rem;
}

.custom-fieldset {
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.custom-legend {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 .75rem;
    background-color: #fff;
}