/* ========== 資訊整理頁 ========== */
.nav-links a.active {
    color: var(--terracotta);
    font-weight: 600;
}

.organize-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.organize-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.organize-hero h1 {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.organize-hero p {
    color: var(--charcoal);
    opacity: 0.85;
    font-size: 1rem;
}

.organize-add {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(125, 155, 118, 0.15);
}

.organize-add h2 {
    font-size: 1.1rem;
    color: var(--forest);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.add-form .form-group {
    margin-bottom: 1.25rem;
}

.add-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
}

.add-form input,
.add-form textarea,
.add-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid rgba(125, 155, 118, 0.3);
    border-radius: 10px;
    background: var(--cream);
    color: var(--charcoal);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.add-form input:focus,
.add-form textarea:focus,
.add-form select:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(125, 155, 118, 0.1);
}

.add-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.25rem;
    justify-content: center;
}

.organize-list h2 {
    font-size: 1.1rem;
    color: var(--forest);
    margin-bottom: 1rem;
    font-weight: 600;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.list-header .count {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.list-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--charcoal);
    user-select: none;
}

.checkbox-wrap input {
    cursor: pointer;
}

.hidden-form {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.inline-form {
    margin: 0;
}

.batch-submit-row {
    margin-top: 1rem;
}

/* Timeline specific styles */
.timeline-list {
    position: relative;
    padding-left: 2.5rem;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: rgba(125, 155, 118, 0.3);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2.05rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    background: var(--sage);
    border: 3px solid var(--cream);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 2px rgba(125, 155, 118, 0.1);
}

.timeline-item:hover .timeline-dot {
    background: var(--terracotta);
    border-color: var(--cream);
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.product-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(125, 155, 118, 0.15);
}

.product-checkbox {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-top: 0.2rem;
}

.product-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--sage);
}

.product-card-body {
    flex: 1;
    min-width: 0;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--charcoal);
    opacity: 0.75;
}

.product-id {
    font-weight: 500;
    color: var(--forest);
}

.product-dates {
    font-size: 0.78rem;
}

.pet-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    background: rgba(125, 155, 118, 0.12);
    color: var(--sage);
    font-weight: 500;
}

.product-card .product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.product-card .product-summary {
    font-size: 0.9rem;
    color: var(--charcoal);
    line-height: 1.65;
    opacity: 0.9;
}

.product-card-actions {
    flex-shrink: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-card-actions .inline-form {
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px dashed rgba(125, 155, 118, 0.3);
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state p {
    color: var(--charcoal);
    font-size: 0.95rem;
    opacity: 0.85;
}

.empty-state a {
    color: var(--sage);
    font-weight: 500;
    text-decoration: none;
}

.empty-state a:hover {
    color: var(--forest);
    text-decoration: underline;
}

/* ========== Pet Picker Strip ========== */
.pet-picker-strip {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    overflow-x: auto;
    padding: 0.25rem 0 0.75rem;
    margin-bottom: 1.25rem;
    scrollbar-width: none;
}
.pet-picker-strip::-webkit-scrollbar {
    display: none;
}

.pet-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    background: white;
    box-shadow: var(--soft-shadow);
    transition: all 0.18s;
    flex-shrink: 0;
    min-width: 60px;
    font-family: inherit;
    color: var(--charcoal);
}
.pet-chip:hover {
    border-color: rgba(125, 155, 118, 0.35);
}
.pet-chip.active {
    border-color: var(--sage);
    background: rgba(125, 155, 118, 0.08);
}

.pet-chip-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}

.pet-chip-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.pet-chip.active .pet-chip-avatar {
    box-shadow: 0 0 0 2px var(--sage);
}
.pet-chip-all .pet-chip-avatar {
    background: linear-gradient(135deg, rgba(125, 155, 118, 0.2), rgba(201, 123, 92, 0.15));
    font-size: 1rem;
}

.pet-chip-name {
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}
.pet-chip.active .pet-chip-name {
    color: var(--forest);
    font-weight: 600;
}

/* ========== Pet Hero Banner ========== */
.pet-hero {
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg,
        rgba(61, 90, 74, 0.06) 0%,
        rgba(125, 155, 118, 0.12) 50%,
        rgba(201, 123, 92, 0.06) 100%);
    border: 1.5px solid rgba(125, 155, 118, 0.25);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.pet-hero::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 155, 118, 0.12), transparent 70%);
    pointer-events: none;
}

.pet-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(61, 90, 74, 0.15);
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.pet-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pet-hero-info {
    flex: 1;
}

.pet-hero-name {
    font-family: "Outfit", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--forest);
}

.pet-hero-meta {
    font-size: 0.85rem;
    color: var(--charcoal);
    opacity: 0.75;
    margin-top: 0.2rem;
}

.pet-hero-stats {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.pet-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pet-hero-stat .stat-num {
    font-family: "Outfit", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--forest);
}

.pet-hero-stat .stat-label {
    font-size: 0.72rem;
    color: var(--charcoal);
    opacity: 0.65;
}


/* ========== Pets Page ========== */
.pets-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.pet-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(125, 155, 118, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    text-align: center;
    transition: box-shadow 0.18s;
}

.pet-card:hover {
    box-shadow: 0 6px 28px rgba(61, 90, 74, 0.12);
}

.pet-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(61, 90, 74, 0.12);
    flex-shrink: 0;
}

.pet-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pet-card-info {
    width: 100%;
}

.pet-card-name {
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.2rem;
}

.pet-card-meta {
    font-size: 0.8rem;
    color: var(--charcoal);
    opacity: 0.65;
    line-height: 1.5;
}

.pet-card-actions {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: flex;
    gap: 0.1rem;
}

