@import url("../fonts/farsi-fonts-styles-fa-num/primary-iran-sans.css");
@import url("../fonts/farsi-fonts-styles-fa-num/secondary-vazir.css");

:root {
  --color-app-bg-one: #f5f5f5;

  --color-app-text-primary: #666666;
  --color-app-text-second: #7d7d7d;

  --color-app-header: #00aaf3;
  --color-app-tab-link: #00aaf3;
  --color-app-switch: #00aaf3;

  --color-app-btn-normal: #00aaf3;
  --color-app-btn-hover: #009bde;

  --color-app-input-normal: #999999;
  --color-app-input-focus: #00aaf3;

  --radius-app-input: 0.55rem;
  --radius-app-btn: 0.55rem;
  --radius-app-card: 1.5rem;

  --breakpoint-app-sm: 576px;
  --breakpoint-app-lg: 992px;
  --breakpoint-app-xl: 1200px;
}

* {
  font-family: "primary-font";
}
.app-form-label.required::after {
  content: "*";
  color: #ff0000;
  margin-left: 5px;
}
body {
  background-color: var(--color-app-bg-one);
  background-image: url("../images/bg-header-lg.svg");
  background-repeat: no-repeat;
  background-position: top;
  background-size: contain;
}

/* Loading */

#loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-image: url("../images/loading.gif");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #6dc7c8;
  opacity: 1;
  transition: 0.75s;
  transform: scale(1);
}

#loading.hide {
  opacity: 0;
  transform: scale(1.25);
}

@media screen and (max-width: 992px) {
  #loading {
    background-size: cover;
  }
}

/* Header And Navigation Menu */

header {
  background-color: transparent;
}

header .top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

header .bottom.v1,
header .bottom.v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-app-header);
}

header .bottom.v1 {
  padding: 1.25rem 1rem;
}

header .bottom.v2 {
  padding: 0.5rem 0.5rem;
}

header .logo {
  display: block;
}

header .logo a {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

header .logo img {
  width: 70px;
}

header .bottom.v1 .logo {
  display: none;
}

header nav {
  background-color: #fff;
}

header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.8rem 0.8rem 0 0;
}

header nav .item {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

header nav .item a {
  display: block;
  padding: 1rem;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  color: #9b9b9b;
  font-size: 0.8rem;
  text-align: center;
  min-width: 150px;
}

header nav .item.active a {
  color: var(--color-app-header);
  background-color: #f4f4f4;
  border-bottom-color: var(--color-app-header);
}

header .bottom.v2 .title {
  color: #fff;
  font-size: 1.15rem;
  padding: 0.5rem 0;
  text-align: center;
}

header .btn-with-icon {
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  text-decoration: none;
  color: var(--color-app-header);
  cursor: pointer;
}

header .btn-with-icon i {
  font-size: 2rem;
}

header .btn-with-icon img {
  display: block;
  width: calc(100% - 1.5rem);
  height: calc(100% - 1.5rem);
}

header .btn-with-icon.reverse {
  background-color: transparent;
  color: #fff;
}

/* Main Container */

#container {
  background-color: var(--color-app-bg-one);
  box-shadow: 0 2px 16px #00000014;
  border-radius: 0.8rem;
  margin: 0 auto;
}

#container #content {
  width: 100%;
  min-height: 50vh;
  margin: 0 auto;
  padding: 2rem;
  background-color: transparent;
}

footer {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Responsive BreakPoints */

@media screen and (max-width: 992px) {
  #container {
    box-shadow: none;
    border-radius: 0;
    position: relative;
    margin-bottom: 5rem;
  }

  .layout-primary #container {
    background-color: var(--color-app-bg-one);
    background-image: url("../images/bg-header-sm.png");
    background-repeat: no-repeat;
    background-position: top;
    background-size: 200% 300px;
  }

  #container #content {
    max-width: none;
    margin-top: 0;
    border-radius: 0;
    padding: 1rem;
    background-color: transparent;
  }

  header nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 19;
    border-top: 1px solid #9b9b9b4d;
    background-color: #f0f0f0;
  }

  header nav .item a {
    min-width: auto;
    border: none;
  }

  header nav .item,
  header nav .item a {
    width: 100%;
  }

  header nav .item.active a {
    background-color: #f0f0f0;
  }

  header .top {
    display: none;
  }

  header .bottom.v1 {
    background-color: transparent;
    padding: 1.25rem 1rem 0.5rem;
    align-items: flex-end;
  }

  header .bottom.v1 .logo {
    display: block;
    align-self: center;
  }

  header .bottom.v2 .title {
    font-size: 0.9rem;
  }

  header .btn-with-icon {
    width: 40px;
    height: 40px;
  }

  header .btn-with-icon img {
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
  }

  footer {
    margin-top: 0;
    margin-bottom: 6rem;
  }

  .layout-second header .bottom.v1 {
    display: none;
  }
}

@media screen and (max-width: 1200px) {
  #container {
    box-shadow: none;
  }

  header nav {
    border-radius: 0;
  }
}

@media screen and (min-width: 992px) {
  .layout-second header .bottom.v1 {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  .layout-primary > h3 {
    display: none;
  }
}

@media screen and (min-width: 1200px) {
  #container {
    max-width: 1200px;
    margin-bottom: 3rem;
  }
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000aa;
  z-index: 21;
}

#sidebar {
  display: block;
  position: fixed;
  top: 0;
  right: -200%;
  z-index: 23;
  width: 360px;
  height: 100%;
  padding: 0.5rem;
  background-color: var(--color-app-bg-one);
  box-shadow: #0000003d 0px 3px 8px;
  overflow-y: auto;
  transition: 0.5s;
}

#sidebar .stick-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: fit-content;
  padding: 0.5rem;
}

@media screen and (max-width: 576px) {
  #sidebar {
    width: 100%;
  }
}

#sidebar.visible {
  right: 0;
}

#install-prompt {
  display: block;
  position: fixed;
  left: 0;
  bottom: -200%;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 21;
  transition: 0.5s;
}

#install-prompt.active {
  bottom: 0;
}

#install-prompt .wrapper {
  display: block;
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem;
}

#install-prompt img {
  display: block;
  width: 70px;
  margin: 0 auto 1.5rem;
}

#install-prompt .title {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

#install-prompt hr {
  display: block;
  width: 100px;
  border: none;
  border-top: 5px solid #00aaf3;
  margin: 1rem auto 2.5rem;
  opacity: 1;
}

#install-prompt .step {
  color: #555;
  text-align: justify;
  font-size: 1rem;
}

#install-prompt .step:not(:last-child) {
  margin-bottom: 1.5rem;
}

#install-prompt .step-mark {
  padding: 0 0.5rem;
  border-radius: 0.25rem;
  background-color: #00aaf3;
  color: #fff;
  white-space: nowrap;
}

#install-prompt button {
  display: block;
  width: 100%;
  margin-top: 2.5rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: none;
  background-color: #00aaf3;
  color: #fff;
}
