:root{
  --color-background-tab: #E9E9E9;
  --color-btn-back-hover: #d8d8d866;
  --color-selected: #AF8321;
  --back-selected: rgba(209, 163, 60, 0.32);
  --color-btn-text: #6C6C6C;
  --background-goals: #E9E9E9;

  &[data-theme="dark"]{
    --background-goals:#252525;
    --color-background-tab: #282828;
    --color-btn-back-hover: #acacac77;
  }
}

.tabs {
    height: 95%;
    overflow: hidden;
    background-color: var( --background-goals) !important;
    width: 100%;
    border-radius: 4px 4px 0px 0px;

    padding: 10px;
    background: transparent;
    overflow: hidden;
    input[type="radio"] {
      display: none;
    }

    .tab-labels {
      display: flex;
      gap: 10px;
      padding-bottom: 10px;
      display: flex;
      width: 260px;
      font-size: 15px;
      label {
          flex: 1;
          text-align: start;
          padding: 2px 0;
          transition: all 0.3s;
          position: relative;

          font-size: var(--font-size-large-S360);
          display: flex;
          width: 100px;
          height: 30px;
          justify-content: center;
          align-items: center;
          gap: 6px;
          border-radius: var(--border-radius-S360);
          border: 1px solid var(--color-border-S360);
          cursor: pointer;
          font-weight: 500;
          text-align: center;
          line-height: 1.5;
          user-select: none;
          transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, opacity .15s ease-in-out;
          color: var(--color-btn-text);
          background: transparent;

          &:hover {
            cursor: pointer;
            background-color: var(--color-btn-back-hover) !important;
          }
        }
    }

    input#tab1:checked ~ .tab-labels label[for="tab1"]::after,
    input#tab2:checked ~ .tab-labels label[for="tab2"]::after,
    input#tab3:checked ~ .tab-labels label[for="tab3"]::after {
        width: 50%;
    }

    input#tab1:checked ~ .tab-labels label[for="tab1"],
    input#tab2:checked ~ .tab-labels label[for="tab2"],
    input#tab3:checked ~ .tab-labels label[for="tab3"] {
      background-color: var(--back-selected) !important;
      color: var(--color-selected);
      border: 1px solid transparent;
    }

    .content1, .content2, .content3 {
      display: none;
    }

    #tab1:checked ~ .content1,
    #tab2:checked ~ .content2,
    #tab3:checked ~ .content3 {
        display: block;
    }

    .tab-content {
        height: calc(100% - 4%);
        overflow: auto;
        padding: 2px;
        border-top: 1px solid #eee;
        animation: fadeIn 0.5s ease;
        background: var(--background-S360) !important;

        /* Centrar visualmente la barra de scroll */
        &::-webkit-scrollbar {
          height: 8px; /* Altura de la barra de desplazamiento */
          width: 8px;
        }

        &::-webkit-scrollbar-track {
          background-color: var(--background-scroll);
          margin-left: 600px;
          margin-right: 478px;
          border-radius: 30px;
        }

        &::-webkit-scrollbar-thumb {
          background-color: #999;
          border-radius: 30px;
          cursor: pointer;
        }

        &::-webkit-scrollbar-thumb:hover {
          background: #818080; /* Color cuando se pasa el cursor */
        }
        &::-webkit-scrollbar-thumb:active {
          background: #b4b0b0; /* Color cuando se pasa el cursor */
        }
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) }
    to { opacity: 1; transform: translateY(0) }
}

@media (max-width: 1366px) or (max-width: 1362px) {
  .tabs {
    .tab-content {
        height: calc(100% - 9%) !important;
    }
  }
}

@media (max-width: 1362px)    {
  .tabs {
    .tab-content {
        height: calc(100% - 5%) !important;
    }
  }
}
