@media (max-width: 1300px) {
  .card__greetings-text {
    font-size: 30px;
  }

  .card__username {
    font-size: 30px;
  }
}

@media (max-width: 1120px) {
  .card__greetings-text {
    font-size: 22px;
  }

  .card__username {
    font-size: 37px;
  }
}

@media (max-width: 1192px) {
  .card {
    width: 190px;
    height: 130px;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
  }

  .card__icon {
    width: 48px;
    height: 48px;
  }

  .card__icon img {
    width: 20px;
    height: 16px;
  }

  .card__number {
    font-size: 42px;
  }

  .card__label {
    font-size: 16px;
  }

  .card__urgent {
    width: 400px;
    height: 130px;
    padding: 14px;
  }

  .card__urgent-left {
    padding-left: 30px;
  }

  .card__urgent-content {
    gap: 10px;
  }

  .card__urgent-icon {
    width: 48px;
    height: 48px;
  }

  .card__urgent-icon img {
    width: 20px;
    height: 16px;
  }

  .card__urgent-number-label .card__number {
    font-size: 42px;
  }

  .card__urgent-number-label .card__label {
    font-size: 16px;
  }

  .card__urgent-seperator {
    height: 80%;
    width: 2px;
    background-color: #D1D1D1;
    margin: 0 10px;
  }

  .card__urgent-right {
    margin-right: 30px;
    gap: 8px;
  }

  .card__date {
    font-size: 16px;
  }

  .card__deadline {
    font-size: 16px;
  }

  .card__overview {
    width: 120px;
    height: 120px;
    padding: 14px;
  }

  .card__overview .card__number {
    font-size: 42px;
  }

  .card__overview .card__label {
    font-size: 16px;
  }
}

@media (max-width: 1007px) {
  .card__greetings-text {
    font-size: 20px;
  }

  .card__username {
    font-size: 37px;
  }
}

@media (max-width: 1040px) {
  .card__greeting {
    display: none;
  }

  .content {
    visibility: hidden;
  }

  .content.show-content {
    visibility: visible;
  }
}

@media (max-width: 927px) {
  .dashboard__title {
    font-size: 40px;
  }

  .dashboard__subtitle {
    font-size: 20px;
  }
}

@media (max-width: 820px) {
  .sidebar__logo-image {
    width: 60px;
  }

  .sidebar__text {
    display: none;
  }
}

@media (max-width: 768px) {

  .dashboard__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 30px;
  }

  .dashboard__title {
    order: 1;
    font-size: 42px;
    margin-bottom: 0;
  }

  .dashboard__subtitle {
    order: 2;
    font-size: 18px;
    margin-bottom: 16px;
    position: static;
    bottom: auto;
  }

  .dashboard__seperator {
    order: 3;
    width: 80px;
    height: 3px;
    background-color: #29ABE2;
    position: static;
    top: auto;
    margin: 0;
  }
}

@media (max-width: 763px) {
  .header {
    padding-left: 40px;
  }

  .header__wrapper {
    padding-right: 40px;
  }

  .header__burger-menu {
    right: 40px;
  }

  .header__help,
  .header__title,
  .card__greeting {
    display: none;
  }

  .header::before {
    content: "";
    display: inline-block;
    background-image: url('../assets/img/logo/join_1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 120px;
    height: 40px;
    margin-right: 20px;
    vertical-align: middle;
  }

  .header__title {
    font-size: 20px;
    display: none;
  }


  .dashboard {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
    padding-bottom: 100px;
  }

  .main {
    padding: 20px;
    padding-bottom: 100px;
  }

  .sidebar__item.active {
    background-color: #091931;
  }
}

@media (max-width: 620px) {
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    transform: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    width: 100%;
    height: 80px;
    padding: 0;
    background-color: #2A3647;
    z-index: 1000;
  }

  .sidebar__logo,
  .sidebar__legal {
    display: none;
  }

  .sidebar__menu {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 6px;
  }

  .sidebar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 6px;
    height: 100%;
    width: 80px;
    padding: 0;
    gap: 6px;
  }

  .sidebar__icon {
    height: 24px;
    width: 24px;
  }

  .sidebar__text {
    display: block;
    font-size: 14px;
  }

  .card__row {
    justify-content: center;
  }

  .dashboard__title,
  .dashboard__subtitle,
  .dashboard__seperator {
    align-self: center;
  }
}

@media (max-height: 644px) {
 
  .dashboard {
    height: calc(100vh - 80px); 
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .header {
    padding-left: 20px;
    height: 80px;
  }

  .header__wrapper {
    padding-right: 32px;
  }

  .header__user {
    height: 40px;
    width: 40px;
    font-size: 16px;
    border: 2px solid var(--header-color-border-user);
  }

  .header__burger-menu {
    right: 32px;
  }

  .sidebar {
    width: 100vw;
    left: 0;
    transform: none;
    margin-bottom: 0;
  }

  .dashboard__header {
    margin-bottom: -10px;
    gap: 1px;
  }

  .dashboard {
    padding-top: 24px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 100px;
  }

  .dashboard__title {
    font-size: 27px;
  }

  .dashboard__subtitle {
    font-size: 14px;
  }

  .dashboard__seperator {
    width: 70px;
  }

  .card {
    width: 160px;
    height: 110px;
    padding: 12px;
  }

  .card__header {
    gap: 10px;
  }

  .card__icon {
    width: 42px;
    height: 42px;
  }

  .card__icon img {
    width: 18px;
    height: 14px;
  }

  .card__number {
    font-size: 36px;
  }

  .card__label {
    font-size: 16px;
  }

  .card__urgent {
    width: 330px;
    height: 110px;
    padding: 12px;
  }

  .card__urgent-left {
    padding-left: 25px;
  }

  .card__urgent-content {
    gap: 8px;
  }

  .card__urgent-icon {
    width: 42px;
    height: 42px;
  }

  .card__urgent-icon img {
    width: 18px;
    height: 14px;
  }

  .card__urgent-number-label .card__number {
    font-size: 36px;
  }

  .card__urgent-number-label .card__label {
    font-size: 16px;
  }

  .card__urgent-seperator {
    margin: 0 8px;
  }

  .card__urgent-right {
    margin-right: 25px;
    gap: 6px;
  }

  .card__date {
    font-size: 16px;
  }

  .card__deadline {
    font-size: 16px;
  }

  .card__overview {
    width: 102px;
    height: 116px;
    padding: 12px;
  }

  .card__overview .card__number {
    font-size: 36px;
  }

  .card__overview .card__label {
    font-size: 16px;
  }

  .card__row {
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .main {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
  }

  .dashboard {
    gap: 20px;
  }
}

@media (max-width: 360px) {
  .main {
    padding: 0;
  }

  .dashboard {
    padding: 10px;
    padding-bottom: 500px;
  }

  .dashboard__title {
    font-size: 27px;
  }

  .dashboard__subtitle {
    font-size: 14px;
  }

  .dashboard__seperator {
    width: 60px;
  }

  .card {
    width: 140px;
    height: 110px;
    padding: 10px;
  }

  .card__header {
    gap: 8px;
  }

  .card__icon {
    width: 38px;
    height: 38px;
  }

  .card__icon img {
    width: 16px;
    height: 12px;
  }

  .card__number {
    font-size: 32px;
  }

  .card__label {
    font-size: 16px;
  }

  .card__urgent {
    width: 290px;
    height: 110px;
    padding: 0px;
  }

  .card__urgent-left {
    padding-left: 20px;
  }

  .card__urgent-content {
    gap: 6px;
  }

  .card__urgent-icon {
    width: 38px;
    height: 38px;
  }

  .card__urgent-icon img {
    width: 16px;
    height: 12px;
  }

  .card__urgent-number-label .card__number {
    font-size: 32px;
  }

  .card__urgent-number-label .card__label {
    font-size: 16px;
  }

  .card__urgent-seperator {
    margin: 0 6px;
  }

  .card__urgent-right {
    margin-right: 20px;
    gap: 5px;
  }

  .card__date {
    font-size: 16px;
  }

  .card__deadline {
    font-size: 16px;
  }

  .card__overview {
    width: 89px;
    height: 100px;
    padding: 10px;
  }

  .card__overview .card__number {
    font-size: 32px;
  }

  .card__overview .card__label {
    font-size: 16px;
  }

  .card__row {
    gap: 10px;
  }
}

@media (max-width: 318px) {
  .dashboard {
    padding: 8px;
    padding-bottom: 100px;
  }

  .dashboard__subtitle {
    font-size: 14px;
  }

  .dashboard__seperator {
    width: 50px;
  }

  .card {
    width: 125px;
    height: 100px;
    padding: 8px;
  }

  .card__header {
    gap: 6px;
  }

  .card__icon {
    width: 34px;
    height: 34px;
  }

  .card__icon img {
    width: 14px;
    height: 10px;
  }

  .card__number {
    font-size: 28px;
  }

  .card__label {
    font-size: 11px;
  }

  .card__urgent {
    width: 256px;
    height: 100px;
    padding: 8px;
  }

  .card__urgent-left {
    padding-left: 15px;
  }

  .card__urgent-content {
    gap: 5px;
  }

  .card__urgent-icon {
    width: 34px;
    height: 34px;
  }

  .card__urgent-icon img {
    width: 14px;
    height: 10px;
  }

  .card__urgent-number-label .card__number {
    font-size: 28px;
  }

  .card__urgent-number-label .card__label {
    font-size: 11px;
  }

  .card__urgent-seperator {
    margin: 0 5px;
  }

  .card__urgent-right {
    margin-right: 15px;
    gap: 4px;
  }

  .card__date {
    font-size: 12px;
  }

  .card__deadline {
    font-size: 9px;
  }

  .card__overview {
    width: 79px;
    height: 79px;
    padding: 8px;
  }

  .card__overview .card__number {
    font-size: 28px;
  }

  .card__overview .card__label {
    font-size: 11px;
  }

  .card__row {
    gap: 8px;
  }
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@media (max-width: 768px) {
  .mobile-greeting-text {
    font-size: 32px;
  }

  .mobile-greeting-username {
    font-size: 40px;
  }

  .mobile-greeting-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .mobile-greeting-text {
    font-size: 29px;
  }

  .mobile-greeting-username {
    font-size: 35px;
  }

  .mobile-greeting-subtitle {
    font-size: 14px;
  }

  .mobile-greeting-content {
    padding: 30px 15px;
  }
}

@media (max-width: 1040px) {
  body.showing-mobile-greeting .content {
    visibility: hidden;
  }
}