:root[data-theme="dark"] {
    --bg: #1a1a1a;
    --bg-alt: #121212;
    --bg-mod: #181818;
    --bg-mod-alt: #3d3d3d;
    --bg-opa: rgba(255, 255, 255, 0.1);
    --text: #F9FDFE;
    --text-alt: #999da3;

    --border: #1f1f1f;
}

:root[data-theme="light"] {
    --bg: #F9FDFE;
    --bg-alt: #f5f7f9;
    --bg-mod: #e7e7e7;
    --bg-mod-alt: #ddd;
    --bg-opa: rgba(0, 0, 0, 0.1);
    --text: #1a1a1a;
    --text-alt: #999da3;

    --border: #ddd;

    /* NOTIFY */
    --notify-bg: #ddd;
    --notify-bg-error: #ffadad;
    --notify-bg-success: #7bf1a8;
    --notify-bg-info: #a0c4ff;
    --notify-bg-warning: #ffd6a5;
    --notify-bg-debug: #9381ff;
}

:root {
    --line: #ddd;

    --brand: #4a00e0;
    --brand-dark: #b388ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "DM Sans";

    scroll-behavior: smooth;
    text-rendering: auto;
}

*::selection {
    background-color: #4a00e0;
    color: white;
    -webkit-text-fill-color: white;
}

a:link {
    color: unset;
    text-decoration: none;
}

a:visited {
    color: unset;
    text-decoration: none;
}

html {
    overflow-x: hidden;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    transition: all .25s ease-out;

    background-color: var(--bg);

    color: var(--text);
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 25px !important;
    width: 100%;
}

.button {
    outline: none;
    cursor: pointer;
    border: none;
    width: fit-content;
    height: fit-content;
    position: relative;
    margin: 0 4vh;
    padding: 10px 25px;
    border-radius: 500vh;
    overflow: hidden;
    background: linear-gradient(to right, #2d9de2, #4a00e0);
}

.button span {
    position: relative;
    color: white;
    transition: white 0.4s;
    background: transparent;
    font-size: 15px;
}

.button:hover span {
    color: white;
}

.button::before,
.button::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.button::before {
    content: "";
    background: #000;
    width: 120%;
    left: -10%;
    transform: skew(30deg);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.75, 1);
}

.button:hover::before {
    transform: translate3d(100%, 0, 0);
}

body .btn {
  width: 100%;

  padding: 5px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background-color: #ebe5fe;

  cursor: pointer;

  user-select: none;

  transition: border .25s ease-out;
}

body .btn:hover {
  background-color: #ebe5fe;
  border: 1px solid #9258f7;
}

body .btn:active {
  transform: scale(.99);
}

body .btn span {
  display: block;

  width: 100%;

  text-align: center;
}

body .sidebar {
  width: 300px;
  height: 100dvh;

  border-right: 1px solid var(--border);
}

body .sidebar .topBar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 75px;

  padding: 12.5px;
}

body .sidebar .topBar .logo {
  width: fit-content;
  height: 50px;
}

body .sidebar .topBar .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body .sidebar section {
  padding: 15px 0px;
  border-top: 1px solid var(--border)
}
body .sidebar .favourites {
  display: none;
}

body .sidebar section .title {
  padding-left: 25px;

  color: var(--text-alt);
  font-size: 14px;

  margin-bottom: 5px;
}

body .sidebar section .title i {
  margin-right: 5px;
}

body .sidebar section .links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body .sidebar section .links a {
  position: relative;
  
  width: calc(100% - 20px);
  height: fit-content;

  padding: 10px 15px;
}

body .sidebar section .links a:not(:last-child) {
  margin-bottom: 5px;
}


body .sidebar section .links a i {
  margin-right: 10px;
}

body .sidebar section .links a.active,
body .sidebar section .links a:hover {
  background-color: rgba(180, 136, 255, 0.1);
  border-radius: 8px;
}

body .sidebar section .links a .badge {
  position: absolute;
  right: 10px;
  top: 5.5px;

  padding: 5px 8px;

  background-color: rgba(179, 136, 255, .2);
  color: #9258f7;
  border: 1px solid #9258f7;
  font-size: 12px;
  font-weight: bold;

  border-radius: 12px;
}




/* modeSwitcher */

.modeSwitcher .switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 4em;
  height: 2.2em;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.modeSwitcher .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.modeSwitcher .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2a2a2a;
  transition: 0.4s;
  border-radius: 30px;
  overflow: hidden;
}

.modeSwitcher .switch .slider:before {
  position: absolute;
  content: "";
  height: 1.2em;
  width: 1.2em;
  border-radius: 20px;
  left: 0.5em;
  bottom: 0.5em;
  transition: 0.4s;
  transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
  box-shadow: inset 8px -4px 0px 0px #fff;
}

.modeSwitcher .switch  input:checked + .slider {
  background-color: #00a6ff;
}

.modeSwitcher .switch  input:checked + .slider:before {
  transform: translateX(1.8em);
  box-shadow: inset 15px -4px 0px 15px #ffcf48;
}

.modeSwitcher .switch .star {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  width: 5px;
  transition: all 0.4s;
  height: 5px;
}

.modeSwitcher .switch .star_1 {
  left: 2.5em;
  top: 0.5em;
}

.modeSwitcher .switch .star_2 {
  left: 2.2em;
  top: 1.2em;
}

.modeSwitcher .switch .star_3 {
  left: 3em;
  top: 0.9em;
}

.modeSwitcher .switch input:checked ~ .slider .star {
  opacity: 0;
}

.modeSwitcher .switch .cloud {
  width: 3.5em;
  position: absolute;
  bottom: -1.4em;
  left: -1.1em;
  opacity: 0;
  transition: all 0.4s;
}

.modeSwitcher .switch input:checked ~ .slider .cloud {
  opacity: 1;
}




/* HEADER */
header {
  position: absolute;
  top: 0px;
  left: 300px;

  width: calc(100dvw - 300px);
  height: 76px;

  border-bottom: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 15px 25px;
}

header .searchBox {
  display: none;
}

header .account {
  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
}

header .account .pb {
  width: 45px;
  height: 45px;

  border-radius: 100%;
  border: 1px solid #9258f7;

  background-color: #ebe5fe;


  margin-right: 10px;

  display: flex;
  justify-content: center;
  align-items: center;
}

header .account .pb i {
  font-size: 20px;

  color: #9258f7;
}

header .account .name {
  font-size: 16px;
}

header .account:hover .name {
  text-decoration: underline;
}

.sidebar .btn {
  width: fit-content;
  height: fit-content;

  background-color: var(--bg);
}

.sidebar .btn:hover {
  background-color: var(--bg-alt);
}

.sidebar .btn:active {
  transform: scale(.95);
}




/* MAIN */
main {
  position: absolute;
  top: 75px;
  left: 300px;

  width: calc(100dvw - 300px);
  height: calc(100dvh - 75px);

  padding: 15px;
}

main .infoText {
  color: var(--text-alt);

  display: flex;
  align-items: flex-start;
}

main .infoText i {
  margin-right: 10px;

  margin-top: 3px;
}

main .titleBox {
  width: 100%;

  display: flex;
  flex-direction: column;
}

main .titleBox .title {
  font-size: 20px;
}

main .titleBox .subtitle {
  font-size: 16px;
  color: var(--text-alt);
}

main .cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    max-width: 960px;

    margin: 15px auto;
    
    padding: 0px 7.5px;
}

main .cards .card {
    min-width: 300px;
    width: max-content;
    height: 150px;
    
    flex: 3;

    border: 1px solid var(--border);
    border-radius: 27px;

    padding: 15px;
    margin: 7.5px;
}

main .cards .card:nth-child(1), 
main .cards .card:nth-child(2), 
main .cards .card:nth-child(3) {
    height: 125px;
}

main .cards .card .titlebar {
    display: flex;
    flex-direction: row;
    align-items: center;
}

main .cards .card .titlebar .icon {
    width: 35px;
    height: 35px;

    border-radius: 12px;

    background-color: #ebe5fe;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-right: 10px;
}

main .cards .card .titlebar .icon i {
    font-size: 15px;
    color: #9258f7;
}

main .cards .card .titlebar .icon.blue {
    background-color: #e5effe;
}
main .cards .card .titlebar .icon.blue i {
    color: #5880f7;
}
main .cards .card .titlebar .icon.red {
    background-color: #fee5e5;
}
main .cards .card .titlebar .icon.red i {
    color: #f75858;
}

main .cards .card .numb {
    width: 100%;
    height: calc(100% - 35px);

    display: flex;
    align-items: flex-end;

    font-size: 25px;
}










/* FORMULAR */
.form .title {
    font-size: 25px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

.form .group {
    width: 100%;

    display: flex;
    align-items: center;
}

.form .group:not(:last-child) {
    margin-bottom: 25px;
}

.form .group .input {
    width: 50%;
}

.form .group .input:nth-child(1) {
    padding-right: 12.5px;
}

.form .group .input:nth-child(2) {
    padding-left: 12.5px;
}

.form .group .input.fullwidth {
    width: 100%;
    padding-right: 0px;
}

.form .group label {
    font-weight: 600;
}

.form .group .input input {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;

    background-color: var(--bg-alt);
    color: var(--text);
}

.form .group .input input.error {
    border-color: red;
}

.form .group .input .button {
    margin: 0px auto;
    width: 100%;
}

.form .group .input .button span {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin: 0px auto;
}

.form .group .right {
    width: fit-content;
    margin-left: auto;
}

.form .group .right:hover{
    cursor: pointer;
    text-decoration: underline;
}
