@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #EFE7DD;
    font-family: 'Poppins', sans-serif;
    color: #8F7F6B;
}

.conteiner {
    width: 35%;
    margin: 0 auto;
    min-height: 100vh;
    padding: 24px 20px 48px;
    display: flex;
    flex-direction: column;
}

.topo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0 24px;
}

.return {
    flex-shrink: 0;
}

.return-h {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #4A4038;
    text-decoration: none;
    font-size: 18px;
    transition: transform ease 150ms;
}

.return-h:hover {
    transform: translateX(-3px);
}

.titulo .tittle {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #4A4038;
}

.titulo .sub-tittle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #A4988A;
}

/* Cada pet é sua própria linha: cartão branco + lixeira fora dele */
.lista-pets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pet-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pet-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(74, 64, 56, 0.06);
    min-width: 0;
}

.pet-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F7F6F2;
    border: 1px solid #E6DCC6;
    object-fit: cover;
    object-position: 50% 35%;
}

.pet-item-nome {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #4A4038;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-excluir {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    color: #CC0000;
    font-size: 16px;
    cursor: pointer;
    transition: background-color ease 150ms;
}

.btn-excluir:hover {
    background-color: rgba(204, 0, 0, 0.08);
}

.btn-excluir:disabled {
    opacity: 0.5;
    cursor: default;
}

.pet-item-skeleton .pet-item {
    pointer-events: none;
}

.skeleton-circle {
    background-color: #F1EBE1;
    animation: brilho 1.6s ease-in-out infinite;
}

.skeleton-linha {
    display: block;
    height: 10px;
    border-radius: 6px;
    background-color: #F1EBE1;
    animation: brilho 1.6s ease-in-out infinite;
}

.skeleton-linha--larga {
    width: 60%;
}

.skeleton-linha--estreita {
    width: 35%;
    margin-top: 8px;
    height: 8px;
}

@keyframes brilho {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.toggle {
  --track-width: 160px;
  --track-height: 32px;
  --track-radius: 50px;
  --thumb-size: 28px;
  --thumb-radius: 50%;
  --thumb-offset: 2px;
  --track-bg-off: #efe7dd;
  --track-bg-on: #8f7f6b;
  --thumb-bg-off: #efe7dd;
  --thumb-bg-on: #8f7f6b;
  --track-fontsize: 11px;
  --anim-style: 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --text-pos: 10px;
  --txt-color-on: #efe7dd;
  --txt-color-off: #8f7f6b;
  --thumb-border-width: 2px;
  --thumb-b-color-off: #8f7f6b;
  --thumb-b-color-on: #efe7dd;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.track {
  position: relative;
  width: var(--track-width);
  height: var(--track-height);
  background: var(--track-bg-off);
  border-radius: var(--track-radius);
  transition: var(--anim-style);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--text-pos);
  box-sizing: border-box;
}
.thumb {
  position: absolute;
  width: var(--thumb-size);
  height: var(--thumb-size);
  background: var(--thumb-bg-off);
  border: var(--thumb-border-width) solid var(--thumb-b-color-off);
  border-radius: var(--thumb-radius);
  top: 50%;
  left: var(--thumb-offset);
  transform: translateY(-50%);
  transition: var(--anim-style);
}
.lbl { font-size: var(--track-fontsize); font-family: inherit; transition: opacity var(--anim-style); font-weight: 800; }
.on { color: var(--txt-color-on); opacity: 0; white-space: nowrap; }
.off { color: var(--txt-color-off); opacity: 1; white-space: nowrap; }
input:checked + .track { background: var(--track-bg-on); }
input:checked + .track .thumb { left: calc(100% - var(--thumb-size) - var(--thumb-offset)); background: var(--thumb-bg-on); border-color: var(--thumb-b-color-on); }
input:checked + .track .on { opacity: 1; }
input:checked + .track .off { opacity: 0; }