/* Google Font Import - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  /* ===== Colors ===== */
  --body-color: #e4e9f7;
  --sidebar-color: #fff;
  --primary-color: #695cfe;
  --primary-color-light: #f6f5ff;
  --toggle-color: #ddd;
  --text-color: #707070;
  --text-title: #333;
  --shadow-color: rgba(0,0,0,0.5);

  /* ====== Transition ====== */
  --tran-03: all 0.2s ease;
  --tran-03: all 0.3s ease;
  --tran-04: all 0.3s ease;
  --tran-05: all 0.3s ease;
}

body {
 /* min-height: 100vh;*/
  background-color: var(--body-color);
  transition: var(--tran-05);
  height: auto;
}

::selection {
  background-color: var(--primary-color);
  color: #fff;
}

body.dark {
  --body-color: #18191a;
  --sidebar-color: #242526;
  --primary-color: #3a3b3c;
  --primary-color-light: #3a3b3c;
  --toggle-color: #fff;
  --text-color: #ccc;
  --text-title: #fff;
  --shadow-color: #437eff41;
}

header {
  background-color: #333;
  color: #fff;
  text-align: center;
  z-index: 2;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1;
}

nav.sidebar {
  margin-top: 00px;
  margin-bottom: 40px;
  z-index: 2;
}


/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  padding: 10px 14px;
  background: var(--sidebar-color);
  transition: var(--tran-05);
  z-index: 2;
}
.sidebar.close {
  width: 88px;
  z-index: 2;
}

/* ===== Reusable code - Here ===== */
.sidebar li {
  height: 50px;
  list-style: none;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.sidebar .nav-header .image,
.sidebar .icon {
  min-width: 60px;
  border-radius: 6px;
}

.sidebar .icon {
  min-width: 60px;
  border-radius: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sidebar .text,
.sidebar .icon {
  color: var(--text-color);
  transition: var(--tran-03);
}

.sidebar .text {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
}
.sidebar.close .text {
  opacity: 0;
}
/* =========================== */

.sidebar .nav-header {
  position: relative;
}

.sidebar .nav-header .image-text {
  display: flex;
  align-items: center;
}
.sidebar .nav-header .logo-text {
  display: flex;
  flex-direction: column;
}
.nav-header .image-text .name {
  align-items: center;
  margin-top: 2px;
  display: inline-flex;
  flex-direction: inherit;
  font-size: 18px;
  font-weight: 600;
}

.nav-header .image-text .profession {
  font-size: 16px;
  margin-top: -2px;
  display: block;
}

.sidebar .nav-header .image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar .nav-header .image img {
  width: 40px;
  border-radius: 6px;
}

.toggle-position {
  position: block;
}

.sidebar .toggle-position .toggle {
  position: block;
  margin-top: 40px;
  transform: translateY(-50%) rotate(180deg);
  height: 50px;
  width: 60px;
  color: var(--primary-color);
  border-radius: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 39px;
  cursor: pointer;
  transition: var(--tran-05);
  background-color: var(--primary-color-light);
}

body.dark .sidebar .toggle-position .toggle {
  color: var(--text-color);
}

.sidebar.close .toggle {
  transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu {
  margin-top: 10px;
}

.sidebar li.search-box {
  border-radius: 6px;
  background-color: var(--primary-color-light);
  cursor: pointer;
  transition: var(--tran-05);
}

.sidebar li.search-box input {
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  background-color: var(--primary-color-light);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  transition: var(--tran-05);
}
.sidebar li a {
  list-style: none;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--tran-03);
}

.sidebar li a:hover {
  background-color: var(--primary-color);
}
.sidebar li a:hover .icon,
.sidebar li a:hover .text {
  color: var(--sidebar-color);
}
body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
  color: var(--text-color);
}

.sidebar .menu-bar {
  height: calc(100% - 170px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;
}
.menu-bar::-webkit-scrollbar {
  display: none;
}
.sidebar .menu-bar .mode {
  border-radius: 6px;
  background-color: var(--primary-color-light);
  position: relative;
  transition: var(--tran-05);
}

.menu-bar .mode .sun-moon {
  height: 50px;
  width: 60px;
}

.mode .sun-moon i {
  position: relative;
}
.mode .sun-moon i.sun {
  opacity: 0;
  position: absolute;
}


body.dark .mode .sun-moon i.sun {
  opacity: 1;
  position: absolute  ;
}
body.dark .mode .sun-moon i.moon {
  opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
  position: absolute;
  right: 0;
  height: 100%;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}
.toggle-switch .switch {
  position: relative;
  height: 22px;
  width: 40px;
  border-radius: 25px;
  background-color: var(--toggle-color);
  transition: var(--tran-05);
}

.switch::before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  background-color: var(--sidebar-color);
  transition: var(--tran-04);
}

body.dark .switch::before {
  left: 20px;
}

.home {
  position: absolute;
  top: 0;
  left: 250px;
  height: calc(100vh - 60px); /* Вычитаем высоту header */
  width: calc(100% - 250px);
  background-color: var(--body-color);
  transition: var(--tran-05);
  margin-top: 60px;
  margin-bottom: 40px;
  flex-grow: 1;
  overflow-y: auto; /* Добавьте скролл, если содержимое превышает высоту блока */
  padding: 20px; /* Добавьте отступы, если нужно */
}


.home .text {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-color);
  padding: 12px 60px;
}

.titlesestext {
  font-size: 30px;
  padding: 12px 90px;
  color: var(--text-color);
  font-family: fantasy;
}

.sidebar.close ~ .home {
  left: 78px;
  height: calc(100% - 60px);
  width: calc(100% - 78px);
}


body.dark .home .text .text-block-card {
  color: var(--text-color);
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.container-table {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

th {
  padding: 15px;
  background-color: rgba(255,255,255,0.2);
  color: var(--primary-color-light);
}
td {
  padding: 15px;
  background-color: rgba(255,255,255,0.2);
  color: var(--text-color);
}

th {
  text-align: left;

}

thead th {
  background-color: var(--text-color);
}

tbody tr:hover {
  background-color: var(--primary-color-light);
}


.clear {
  clear: both;
}

#man-people-user, #lock-locker {
  fill: var(--text-color);
}

.wrapper {
  width: 300px;
  margin: 10% auto;
}

.wrapper h3 {
  color: var(--text-color);
}

form {
  position: relative;
  width: 400px;
}

.clear {
  clear: both;
}

.sign-in {
  float: left;
  color: white;
  font-size: 1.3em;
}

.button {
  float: right;
  color: #7f8084;
  border: 1px solid #22272d;
  padding: 7px 15px;
  border-radius: 3px;
  font-size: 0.8em;
  cursor: pointer;
}

.button:hover {
  color: #d3d3d3;
}

.lock {
  position: absolute;
  width: 30px;
  height: 30px;
  margin-top: 10px;
  padding: 7px;
  left: 5px;
}
.lock::after {
  content: "";
  width: 1px;
  height: 30px;
  position: absolute;
  background: var(--text-color);
  top: 0px;
  left: 100%;
}

.user {
  position: absolute;
  width: 30px;
  height: 30px;
  margin-top: 10px;
  padding: 7px;
  left: 5px;
}
.user::after {
  content: "";
  width: 1px;
  height: 30px;
  position: absolute;
  background: var(--text-color);
  top: 0px;
  left: 100%;
}

.check-label {
  color: var(--text-color);
  position: relative;
  top: 10px;
}

input {
  width: 100%;
  padding: 0px;
  height: 40px;
  border-radius: 3px;
  margin: -5px 0;
  outline: none;
}
.logininput{
  margin: 5px 0;
}

input[type="text"]:focus, input[type="password"]:focus {
  border: 1px solid white;
  box-shadow: none;
}

.user-input:focus .user {
  background: white !important;
}

input[type="text"] {
  background: transparent;
  border: 2px solid var(--text-color);
  padding-left: 45px;
  color: var(--text-color);
}

input[type="password"] {
  background: transparent;
  border: 2px solid var(--text-color);
  padding-left: 45px;
  color: #e6b333;
}

input[type="submit"] {
  background: #e6b333;
  border: none;
  color: white;
  text-align: center;
  font-size: 0.8em;
  cursor: pointer;
}

input[type="radio"] {
  display: none;
}

:root {
  --body-color: #ebf0ff;
  --sidebar-color: #fff;
  --primary-color: #4070f4;
  --primary-color-light: #f6f5ff;
  --toggle-color: #ddd;
  --text-color: #707070;
  --tran-02: all 0.2s ease;
  --tran-03: all 0.3s ease;
  --tran-04: all 0.4s ease;
  --tran-05: all 0.5s ease;
}
body.dark {
  --body-color: #18191a;
  --sidebar-color: #242526;
  --primary-color: #3a3b3c;
  --primary-color-light: #3a3b3c;
  --toggle-color: #6f6f6f;
  --text-color: #ccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  min-height: 1500px;
  background-color: var(--body-color);
  transition: var(--tran-05);
}


.switch-mode .sidebar-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 1px;
  }

  .mode {
    display: flex;
    align-items: center;
    margin-top: 10px;
    border-radius: 6px;
    background-color: var(--primary-color-light);
    position: relative;
    transition: var(--tran-05);
    list-style: none;
    height: 50px;
  }

    .text {
      color: var(--text-color);
      transition: var(--tran-03);
    }
    .sun-moon {
      height: 50px;
      width: 45px;
      display: flex;
      align-items: center;
      justify-content: space-around;
    }
    .toggle-switch {
      position: absolute;
      right: 0;
      height: 100%;
      min-width: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      cursor: pointer;
    }

    .toggle-switch .switch {
      position: relative;
      height: 22px;
      width: 40px;
      border-radius: 25px;
      background-color: var(--toggle-color);
      transition: var(--tran-05);
    }

    .switch::before {
      content: "";
      position: absolute;
      height: 15px;
      width: 15px;
      border-radius: 50%;
      top: 50%;
      left: 5px;
      transform: translateY(-50%);
      background-color: var(--sidebar-color);
      transition: var(--tran-04);
    }
  
.overlay {
  position: fixed;
  top: 0;
  width: 200%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  background: rgba(0, 0, 0, 0.3);
}


.switch-mode {
    /*position: fixed;*/
    width: 200px;
    /*box-shadow: 0 5px 1px rgba(0, 0, 0, 0.1);*/
    transition: all 0.4s ease;
  }

.range-flex {
  display: flex;
  justify-content: space-between;
}
/* Переключатель Remember me */
.switch2 {
  position: relative;
  display: block;
  width: 40px;
  height: 22px;
  margin-left: 10px;
  margin-right: 15px;
}

.switch2 input {display:none;}

.slider2 {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--toggle-color);
  -webkit-transition: .6s;
  transition: .6s;
}

.slider2:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background-color: var(--sidebar-color);
  -webkit-transition: .6s;
  transition: .6s;
}

input:checked + .slider2 {
  background-color: #e6b333;
}

input:focus + .slider2 {
  box-shadow: 0 0 1px var(--toggle-color);
}

input:checked + .slider2:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

.slider2.round2 {
  border-radius: 25px;
}

.slider2.round2:before {
  border-radius: 50%;
}

/* server settings */
.status {
  font-weight: bold;
  color: green;
}

.uptime {
  font-style: italic;
}

/*DASHBOARDS only card */

.cardashboard {
  margin: 0% 9%;
  width: calc(100% - 2em);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-gap: 1em;
  grid-template-areas: 
    "a b c" 
    "d e f"
    "g h i";
  width: 85%;
}


/* NEWS grid-to-cards */

.cards {
  margin: 0.5% 10%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-gap: 2em;
  grid-template-areas: 
    "a a b c" 
    "a a d d"
    "e e f f"
    "g g h h";
  width: 85%;
}

.container {
  flex: 1; /* Added to make the container grow to fill available space */
  width: 100%;
  max-width: 3000px;
  min-width: 100px;
  margin: 0 auto;
}

.card {
  width: 100%;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  border-radius: 16px;
}

.card:last-child {
  margin-bottom: 0;
}

.card:before {
  height: 0;
  content: "";
  display: block;
  padding-bottom: 47.36%;
}

.card.content:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  content: "";
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.301));
  border-radius: 16px;
}

.card:nth-child(1) {
  grid-area: a;
}

.card:nth-child(2) {
  grid-area: b;
}

.card:nth-child(3) {
  grid-area: c;
}

.card:nth-child(4) {
  grid-area: d;
}

.card:nth-child(5) {
  grid-area: e;
}

.card:nth-child(6) {
  grid-area: f;
}

.card:nth-child(7) {
  grid-area: g;
}

.card:nth-child(8) {
  grid-area: h;
}

.card:nth-child(9) {
  grid-area: i;
}

.card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 30px var(--shadow-color);
  border-radius: 16px;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.card-label {
  position: absolute;
  top: .45rem;
  left: .45rem;
  background: #089f8ac0;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 0.7em;
  color: white;
  padding: 0.5em;
}

.card-title {
  position: absolute;
  left: 1em;
  bottom: 1em;
  color: #d6dbeb;
  z-index: 0;
  font-size: calc(30px - 10px);
}

.card.form:before {
  background: linear-gradient(
    60deg,
    #f79533,
    #f37055,
    #ef4e7b,
    #a166ab,
    #5073b8,
    #1098ad,
    #07b39b,
    #6fba82
  );
}

.card.form:after {
  position: absolute;
  top: .5em;
  left: .5em;
  width: calc(100% - 1em);
  height: calc(100% - 1em);
  content: "";
  background: #252833;
}

.form-title {
  position: sticky;
  top: 1rem;
  left: 1rem;
  font-size: 3vw;
  font-weight: 900;
  z-index: 1;
  text-transform: uppercase;
  background: linear-gradient(
    60deg,
    #f79533,
    #f37055,
    #ef4e7b,
    #a166ab,
    #5073b8,
    #1098ad,
    #07b39b,
    #6fba82
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.form-title:before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  content: "Sign Up";
  opacity: 0.5;
  filter: blur(10px);
  transition: all .25s ease;
  z-index: 2;
  background: linear-gradient(
    60deg,
    #f79533,
    #f37055,
    #ef4e7b,
    #a166ab,
    #5073b8,
    #1098ad,
    #07b39b,
    #6fba82
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  transform: translateX(-50%) translateY(-50%);
}

.card:nth-child(2) .card-label {
  background: #ef4e7ac0;
}

.card:nth-child(3) .card-label {
  background: #1098adc0;
}

.card:nth-child(4) .card-label {
  background: #7310aac0;
}

.card:nth-child(5) .card-label {
  background: #520d7ac0;
}

/* Приближение при наведении */
.card:hover {
  transform: scale(1.01);
  box-shadow: 0 0 30px var(--shadow-color);
}

.card:hover .form-title:before {
  filter: blur(3px);
  opacity: 0.7;
}

.card-graph {
  position: absolute;
  padding: 5px 0px 0px 0px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-gprah graph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

/* Tablecolored */
.TableColor{
  background-color: var(--toggle-color);
}
.trColor {
  color: var(--text-color);
  background-color: var(--sidebar-color)
}
.tdColor{
  color: var(--text-color);
}
.thColor{
  color: var(--text-color);
}
