html, body {
  background-color: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: row;
  font-family: var(--font);
  margin: 0;
  min-height: 100%;
  padding: 0;
  width: 100%;
}

.sidebar {
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  height: calc(100% - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  width: 200px;
}

.sidebar-item {
  align-items: center;
  border-radius: 10px;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  gap: 10px;
  margin: 5px 0;
  padding: 10px;
  text-decoration: none;
  transition:
    background-color 0.1s,
    color 0.1s;
  width: calc(100% - 20px);
}

.sidebar-item:hover {
  background-color: var(--color-section);
  color: var(--color-accent);
}

.sidebar-item-icon {
  height: 24px;
  transition: stroke 0.1s;
  width: 24px;
}

.sidebar-logo {
  font-size: 18px;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 10px 0;
}

@media (max-width: 768px) {
  .sidebar {
    padding: 20px 0;
    position: fixed;
    transition:
      width 0.3s var(--func-sharp),
      padding 0.3s var(--func-sharp);
    width: 0;
    z-index: 2;
  }
}

.content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100%;
}

.header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: none;
  justify-content: center;
  left: 0;
  padding: 10px 40px;
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 768px) {
  .header {
    display: flex;
  }
}

.header-menu {
  border-radius: 50%;
  cursor: pointer;
  height: 24px;
  left: 40px;
  padding: 8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
}

.header-menu:hover {
  background-color: var(--color-section);
}

.header-logo {
  align-items: center;
  border-radius: 10px;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  gap: 10px;
  padding: 10px;
  transition:
    background-color 0.1s,
    color 0.1s;
}

.header-logo:hover {
  background-color: var(--color-section);
  color: var(--color-accent);
}

.content-container {
  flex: 1;
  padding: 40px;
  position: relative;
  view-transition-name: content;
}

.content-title {
  color: var(--color-text-secondary);
  font-size: 36px;
  font-weight: 200;
  padding-bottom: 20px;
}

.content-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  position: absolute;
  right: 40px;
  top: 40px;
}

@media (max-width: 900px) {
  .content-toolbar {
    position: static;
  }
}

.content-button {
  align-items: center;
  background-color: var(--color-accent);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--color-surface);
  cursor: pointer;
  display: flex;
  font-family: var(--font);
  font-size: 16px;
  gap: 5px;
  padding: 10px 15px;
  transition: background-color 0.1s;
}

.content-button:hover {
  background-color: var(--color-accent-hover);
}

.content-button svg {
  height: 1rem;
  width: 1rem;
}

.content-search {
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-secondary);
  display: flex;
  gap: 5px;
  padding: 10px 0 10px 15px;
  position: relative;
  width: 156px;
}

.content-search svg {
  height: 1rem;
  width: 1rem;
}

.content-search input {
  background-color: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  left: 36px;
  padding: 10px 15px 10px 0;
  position: absolute;
  width: 120px;
}

.content-search input:focus {
  outline: none;
}

.content-search::placeholder {
  color: var(--color-text-muted);
}

.content-dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  margin-top: 20px;
}

@keyframes fade {
  from {
    filter: blur(5px);
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}

.content-dashboard-card {
  animation: 0.5s fade var(--func-sharp) both;
  animation-delay: var(--delay);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 20px;
  position: relative;
  transition: background-color 0.1s;
}

.content-dashboard-card:hover {
  background-color: var(--color-section);
}

.content-dashboard-card-ellipsis {
  color: var(--color-text-muted);
  cursor: pointer;
  height: 24px;
  padding: 8px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 24px;
}

.content-dashboard-card-ellipsis:hover {
  background-color: var(--color-border);
  border-radius: 50%;
}

.content-dashboard-card-title {
  font-size: 20px;
  font-weight: 300;
  margin: 10px 0;
}

.content-dashboard-card-desc {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin: 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-dashboard-card-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.content-dashboard-card-progress-text {
  display: flex;
  font-size: 14px;
  justify-content: space-between;
}

@keyframes grow-wrapper {
  from {
    opacity: 0.5;
    width: 0;
  }

  to {
    opacity: 1;
    width: 100%;
  }
}

@keyframes grow-inner {
  from {
    opacity: 0.5;
    width: 0;
  }

  to {
    opacity: 1;
    width: calc(100% * var(--t));
  }
}

.content-dashboard-card-progress-bar-wrapper {
  animation: 0.5s grow-wrapper var(--func-sharp) both;
  animation-delay: var(--delay);
  background-color: var(--color-border);
  border-radius: 1.5px;
  height: 3px;
  overflow: hidden;
}

.content-dashboard-card-progress-bar-inner {
  animation: 0.8s grow-inner var(--func-sharp) both;
  animation-delay: calc(var(--delay) + 0.2s);
  background-color: var(--color-accent);
  height: 100%;
}

.content-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

.bottom-bar {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  bottom: 0;
  display: none;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  left: 0;
  padding: 10px;
  position: sticky;
  z-index: 1000;
}

@media (max-width: 768px) {
  .bottom-bar {
    display: grid;
    view-transition-name: bottom-bar;
  }
}

.bottom-bar-item {
  background-color: transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 6px 12px;
  text-align: center;
  transition: background-color 0.1s;
}

.bottom-bar-item:hover {
  background-color: var(--color-section);
}

.bottom-bar-item::after {
  content: attr(data-label);
  display: block;
  font-size: 12px;
}

@keyframes fade-out {
  from {
    filter: blur(0px);
    opacity: 1;
    transform: translateX(0);
  }

  to {
    filter: blur(5px);
    opacity: 0;
    transform: translateX(-20px);
  }
}

@keyframes fade-in {
  from {
    filter: blur(5px);
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    filter: blur(0px);
    opacity: 1;
    transform: translateX(0);
  }
}

::view-transition-old(content) {
  animation: 0.5s fade-out var(--func-sharp) both;
  z-index: 0;
}

::view-transition-new(content) {
  animation: 0.3s fade-in var(--func-sharp) both;
  z-index: 0;
}

::view-transition-old(bottom-bar) {
  animation: none;
  opacity: 0;
}

::view-transition-new(bottom-bar) {
  animation: none;
  opacity: 1;
}