/*
Project         :  Quran hdith Bayenah Dashboard
Version         :  0.1
Author          :  
Developer       :  Kareem Sultan (HTML-CSS)
Framework       :  Bootstrap 5
Date            :  14/03/2025      
*/

/* ============================================ *

 * Contents

 1- ROOT
 2- FONT
 3- BODY
 4- CONTAINER
 5- FRAMEWORK
 6- NAVBAR
 7- SECTION  

 * ============================================ */

/* ============================================ *
 * ROOT
 * ============================================ */

:root {
  --gradient: linear-gradient(112.41deg, #363F4D -29.38%, #0E131B 64.03%);
  --main-color: #FFFFFF;
  --main-bg: #161B26;
  --outline: rgba(205, 205, 205, 0.4);
  --secondary: #CBCBCB;
  --gray: #353C4C;
  --green: #44D2A8;
  --success: #2D9E5E;
  --red: #FF0000;
  --yellow: #FFE15A;
  --dark-yellow: #B6A76E;
  --purple: #7168BD;
  --bs-gutter-x: 2.5rem
}

/* ============================================ *
 * FONT
 * ============================================ */

.fs14 {
  font-size: 0.875rem;
}

.fs22 {
  font-size: 1.375rem;
}

.fw600 {
  font-weight: 600;
}

body {
  font: 400 1rem/1.35 "IBM Plex Sans Arabic", sans-serif;
  color: var(--main-color);
  background-color: var(--main-bg);

}

/* ============================================ *
 * LOADER
 * ============================================ */

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1031;
  /*   background: var(--gradient); */
}

.loader-wrapper .loader-section {
  position: fixed;
  top: 0;
  background: url(../img/loader-bg-4.jfif) repeat center center;
  width: 50%;
  height: 100%;
  z-index: 1000;
}


.loader-wrapper .loader-section.section-left {
  left: 0
}

.loader-wrapper .loader-section.section-right {
  right: 0;
}

/* Loaded Styles */
.loaded .loader-wrapper .loader-section.section-left {
  transform: translateX(-100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded .loader-wrapper .loader-section.section-right {
  transform: translateX(100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loader {
  position: relative;
  z-index: 1031;
  display: inline-block;
  transition: all 1s ease-in;
}

.loaded .loader {
  opacity: 0;
}

.loaded .loader-wrapper {
  visibility: hidden;
  transform: translateY(-100%);
  transition: all .3s 1s ease-out;
}

/* ============================================ *
 * LOADER -light Version
 * ============================================ */

.loader-wrapper-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1031;
  /* background: var(--light-gradient); */
}

.loader-wrapper-light .loader-section {
  position: fixed;
  top: 0;
  background: url(../img/light-loader.jfif) repeat center center;
  width: 50%;
  height: 100%;
  z-index: 1000;
}

.loader-wrapper-light .loader-section.section-left {
  left: 0;
}

.loader-wrapper-light .loader-section.section-right {
  right: 0;
}

.loaded .loader-wrapper-light .loader-section.section-left {
  transform: translateX(-100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded .loader-wrapper-light .loader-section.section-right {
  transform: translateX(100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loader-light {
  position: relative;
  z-index: 1031;
  display: inline-block;
  transition: all 1s ease-in;
}

.loaded .loader-light {
  opacity: 0;
}

.loaded .loader-wrapper-light {
  visibility: hidden;
  transform: translateY(-100%);
  transition: all .3s 1s ease-out;
}

/* ============================================ *
  * AOS animation
  * ============================================ */

body[data-aos-delay='3400'] [data-aos],
[data-aos][data-aos][data-aos-delay='3400'] {
  transition-delay: 3.4s;
}

body[data-aos-delay='3700'] [data-aos],
[data-aos][data-aos][data-aos-delay='3700'] {
  transition-delay: 3.7s;
}

body[data-aos-delay='4000'] [data-aos],
[data-aos][data-aos][data-aos-delay='4000'] {
  transition-delay: 4s;
}

body[data-aos-delay='4400'] [data-aos],
[data-aos][data-aos][data-aos-delay='4400'] {
  transition-delay: 4.4s;
}

body[data-aos-delay='5000'] [data-aos],
[data-aos][data-aos][data-aos-delay='5000'] {
  transition-delay: 5s;
}

body[data-aos-delay='5400'] [data-aos],
[data-aos][data-aos][data-aos-delay='5400'] {
  transition-delay: 5.4s;
}


/* ============================================ *
  * FRAMEWORK
  * ============================================ */

.text_success {
  color: var(--success);
}

.text_secondary {
  color: var(--secondary);
}

.bg_yellow {
  background-color: var(--yellow);
}

.bg_green {
  background-color: var(--green);
}

.bg_success {
  background-color: var(--success);
}

.bg_red {
  background-color: var(--red);
}

.bg_gray {
  background-color: var(--gray);
}

.bg_dark_yellow {
  background-color: var(--dark-yellow);
}

.bg_purple {
  background-color: var(--purple);
}

.radius {
  border-radius: .625rem;
}

.circle {
  position: relative;
  display: inline-block;
  width: 13px;
  min-width: 13px;
  max-width: 13px;
  height: 13px;
  min-height: 13px;
  max-height: 13px;
  border-radius: 50%;
}

.circle_lg {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
}

.circle_text_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* ============================================ *
  * NAVBAR
  * ============================================ */

.navbar {
  backdrop-filter: blur(10px);
  background: var(--gradient);
  border: 1px solid var(--outline);
  border-radius: 1.25rem;
  margin-top: 1.25rem;
}

/* ============================================ *
  * SECTION
  * ============================================ */

.section {
  overflow: hidden;
  margin-top: 1.375rem;
}

/* ============================================ *
  * VISITS
  * ============================================ */

.card_wrapper {
  border: 1px solid var(--outline);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  padding: 1.125rem;
  background: url(../img/visitors-bg-dark.svg) no-repeat top left, var(--gradient);
}
.card_wrapper_light {
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  border: 1px solid #dee2e6; /* Add subtle border to distinguish cards */
  color: #212529; 
  padding: 1.125rem;

}
.card_header {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
}

.visitors_card {
  width: 100%;
  padding: 1rem 1.3rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.visitors_card,
.visitors_card .card_main_text,
.visitors_card .card_main_text div {
  line-height: 100%;
}

.visitors_card .card_header {
  color: var(--secondary);
  font-size: 1.25rem;
  padding-bottom: .8rem;
}

.visitors_card .card_main_text {
  display: inline-block;
  font-size: 2rem;
  font-weight: 600;
  padding-bottom: .225rem;
}

.stats_circles_wrapper {
  border: 1px solid var(--outline);
}

.map_card_wrapper {
  height: calc(100% - 1.25rem);
}

/* ============================================ *
  * CHARTS
  * ============================================ */

.countries_visits {
  margin-top: 2px;
}

.countries_lang_charts {
  padding: 0.75rem;
}

#language-chart,
#country-chart {
  height: 180px;
}


/* ============================================ *
  * RESPONSIVE
  * ============================================ */



@media screen and (min-width: 1251px) and (max-width: 1450px) {

  .visitors_card .card_main_text {
    font-size: 1.5rem;
  }

  .visitors_card .card_header {
    font-size: 1rem;
  }
}

@media screen and (min-width: 991px) and (max-width: 1251px) {

  .visitors_card .card_main_text {
    font-size: 1.3rem;
  }

  .visitors_card .card_header {
    font-size: .9rem;
  }
}

@media screen and (min-width: 819px) and (max-width: 920px) {

  .visitors_card .card_main_text {
    font-size: 1.6rem;
  }

  .visitors_card .card_header {
    font-size: 1rem;
  }

}


@media screen and (min-width: 768px) and (max-width: 819px) {

  .visitors_card .card_main_text {
    font-size: 1.3rem;
  }

  .visitors_card .card_header {
    font-size: 1rem;
  }
}

@media screen and (min-width: 576px) and (max-width: 600px) {
  .visitors_card .card_main_text {
    font-size: 1.8rem;
  }
}

@media (max-width: 1199px) {
  :root {
    --bs-gutter-x: 1.1rem
  }
}

@media (max-width: 991px) {
  .countries_visits {
    margin-top: 1.375rem;
  }

  .map_card_wrapper {
    height: 100%;
  }

  #map {
    height: 60vh !important;
  }
}

@media (max-width: 767px) {

  .circle_text_wrapper span {
    font-size: 0.875rem !important;
  }

  .circle {
    width: 12px;
    min-width: 12px;
    max-width: 12px;
    height: 12px;
    min-height: 12px;
    max-height: 12px;
  }

  .stats_circles_wrapper .circle {
    width: 6px;
    min-width: 6px;
    max-width: 6px;
    height: 6px;
    min-height: 6px;
    max-height: 6px;
  }

  .stats_circles_wrapper .circle_text_wrapper span {
    font-size: 0.5rem !important;
  }
}

