﻿/*Tabview*/
.tabview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tabview-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

/*Button*/
.tab-button,
.tab-button-active {
  border-radius: 999px;
  padding: 7px 14px 8px 14px;
  font-size: 14.5px;
  font-family: inherit;
  border: 1.5px solid #FFFFFF10;
  background-color: #FFFFFF0C;
  color: #ffffff;
  cursor: pointer;
  line-height: 1.2;
  outline: none;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tab-button-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/*Normal button*/
.tab-button:hover {
  background-color: #FFFFFF16;
}

.tab-button:active {
  background-color: #FFFFFF08;
}

/*Active button*/
.tab-button-active {
  color: #000000;
  background-color: var(--accent-foreground-rest);
  border-color: var(--accent-foreground-rest);
}

  .tab-button-active:hover {
    color: #000000;
    background-color: var(--accent-foreground-hover);
    border-color: var(--accent-foreground-hover);
  }

  .tab-button-active:active {
    color: #000000;
    background-color: var(--accent-foreground-active);
    border-color: var(--accent-foreground-active);
  }

  /* focus (klawiatura) dla obu stanów */
  .tab-button:focus-visible,
  .tab-button-active:focus-visible {
    border-color: var(--app-accent);
  }

/*Content*/
.tab-content {
  width: 100%;
}

/* stany animacji contentu */
.tab-content-visible {
  opacity: 1;
}

.tab-content-fade-out {
  animation: tab-fade-out 200ms ease-out forwards;
}

.tab-content-fade-in {
  animation: tab-fade-in 200ms ease-out forwards;
}

@keyframes tab-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes tab-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*800*/
@media (max-width: 800px) {
  .tabview {
    margin: 0 24px;
  }
}