Appointments, account stuff, adopt a pet changes

This commit is contained in:
augmentedpotato
2026-03-30 05:38:15 -06:00
parent 4dd57e3484
commit 00c5198c47
30 changed files with 2611 additions and 48 deletions

View File

@@ -232,7 +232,7 @@ body {
border-radius: 2px;
}
/* ─── Adopt Page ─────────────────────────────────────────────── */
/* Adopt page */
.adopt-page {
min-height: 100vh;
@@ -373,6 +373,12 @@ body {
line-height: 1;
}
.pet-card-image {
width: 100%;
height: 100%;
object-fit: cover;
}
.pet-card-body {
padding: 1rem 1.25rem 1.25rem;
display: flex;
@@ -459,7 +465,7 @@ body {
color: #555;
}
/* ─── Pet Detail Page ─────────────────────────────────────────── */
/* Pet details */
.pet-detail-page {
min-height: 100vh;
@@ -508,6 +514,12 @@ body {
line-height: 1;
}
.pet-detail-image {
width: 100%;
height: 100%;
object-fit: cover;
}
.pet-detail-info {
flex: 1;
padding: 2.5rem 2.5rem 2.5rem 0;
@@ -599,7 +611,41 @@ body {
background: #e69500;
}
/* ─── Responsive Design ──────────────────────────────────────── */
/* Products Page */
.products-page {
min-height: 100vh;
}
.products-hero {
text-align: center;
padding: 4rem 2rem 3rem;
background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}
.products-hero-title {
font-size: 3rem;
color: #333;
margin-bottom: 1rem;
font-weight: 700;
letter-spacing: -0.5px;
}
.products-hero-subtitle {
font-size: 1.5rem;
color: #666;
margin-bottom: 2rem;
font-weight: 300;
}
.product-card-price {
display: inline-block;
margin-top: 0.4rem;
font-size: 1.05rem;
font-weight: 700;
color: #1a7a3c;
}
/* Responsive Design */
@media (max-width: 1024px) {
.adopt-grid {
@@ -608,11 +654,13 @@ body {
}
@media (max-width: 768px) {
.adopt-hero-title {
.adopt-hero-title,
.products-hero-title {
font-size: 2rem;
}
.adopt-hero-subtitle {
.adopt-hero-subtitle,
.products-hero-subtitle {
font-size: 1.2rem;
}
@@ -641,7 +689,8 @@ body {
grid-template-columns: 1fr;
}
.adopt-hero-title {
.adopt-hero-title,
.products-hero-title {
font-size: 1.6rem;
}
@@ -705,7 +754,7 @@ body {
padding: 2rem 1rem;
}
}
/* ─── Adopt diagnostic additions ────────────────────────────── */
/* Adopt diagnostics */
.adopt-controls-row {
display: flex;
@@ -1020,3 +1069,633 @@ body {
color: #888;
font-size: 1rem;
}
/* Appointments Page */
.appt-page {
min-height: 100vh;
}
.appt-hero {
text-align: center;
padding: 3rem 2rem 2rem;
background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
}
.appt-hero-title {
font-size: 2.2rem;
font-weight: 800;
color: #222;
margin: 0 0 0.5rem;
}
.appt-hero-subtitle {
font-size: 1.1rem;
color: #666;
margin: 0 0 1rem;
}
.appt-content {
max-width: 900px;
margin: 0 auto;
padding: 2rem;
display: flex;
flex-direction: column;
gap: 2.5rem;
}
.appt-form {
background: white;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
padding: 2rem;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.appt-form-title {
font-size: 1.35rem;
font-weight: 700;
color: #222;
margin: 0;
}
.appt-label {
display: flex;
flex-direction: column;
gap: 0.35rem;
font-size: 0.9rem;
font-weight: 600;
color: #444;
}
.appt-select,
.appt-input {
padding: 0.6rem 0.85rem;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
outline: none;
background: white;
}
.appt-select:focus,
.appt-input:focus {
border-color: orange;
box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
}
.appt-service-info {
background: #fff8f0;
border: 1px solid #ffd180;
border-radius: 8px;
padding: 0.75rem 1rem;
font-size: 0.9rem;
color: #555;
}
.appt-service-info p {
margin: 0;
}
.appt-slots-grid {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.25rem;
}
.appt-slot-btn {
padding: 0.45rem 0.9rem;
border: 1px solid #ddd;
border-radius: 20px;
background: white;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s ease;
}
.appt-slot-btn:hover {
border-color: orange;
background: #fff8f0;
}
.appt-slot-btn--selected {
background: orange;
color: white;
border-color: orange;
}
.appt-slot-btn--selected:hover {
background: #e69500;
}
.appt-slots-loading,
.appt-no-slots {
font-size: 0.9rem;
color: #888;
font-weight: 400;
margin: 0.25rem 0 0;
}
.appt-pets-grid {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.25rem;
}
.appt-pet-chip {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.4rem 0.85rem;
border: 1px solid #ddd;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
user-select: none;
}
.appt-pet-chip:hover {
border-color: orange;
background: #fff8f0;
}
.appt-pet-chip--selected {
background: #fff3e0;
border-color: orange;
color: #c47600;
}
.appt-pet-chip-species {
font-weight: 400;
color: #888;
}
.appt-pet-chip--selected .appt-pet-chip-species {
color: #c47600;
}
.appt-pet-checkbox {
accent-color: orange;
}
.appt-link {
color: orange;
font-weight: 600;
text-decoration: none;
}
.appt-link:hover {
text-decoration: underline;
}
.appt-submit-btn {
margin-top: 0.5rem;
padding: 0.75rem;
background: orange;
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
transition: background 0.2s ease, transform 0.1s ease;
}
.appt-submit-btn:hover:not(:disabled) {
background: #e69500;
}
.appt-submit-btn:active:not(:disabled) {
transform: scale(0.98);
}
.appt-submit-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.appt-error {
background: #fff0f0;
border: 1px solid #f5c6c6;
color: #c0392b;
border-radius: 8px;
padding: 0.65rem 1rem;
font-size: 0.9rem;
}
.appt-success {
background: #f0fff4;
border: 1px solid #b2dfdb;
color: #1a7a3c;
border-radius: 8px;
padding: 0.65rem 1rem;
font-size: 0.9rem;
}
.appt-loading,
.appt-empty {
text-align: center;
color: #888;
font-size: 0.95rem;
padding: 1rem 0;
}
.appt-history {
background: white;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
padding: 2rem;
}
.appt-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-top: 1rem;
}
.appt-card {
border: 1px solid #eee;
border-radius: 10px;
padding: 1rem 1.25rem;
transition: box-shadow 0.2s ease;
}
.appt-card:hover {
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.appt-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.4rem;
}
.appt-card-service {
font-weight: 700;
font-size: 1rem;
color: #222;
}
.appt-card-status {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
padding: 0.2rem 0.7rem;
border-radius: 20px;
letter-spacing: 0.03em;
}
.appt-card-status--booked {
background: #e3f2fd;
color: #1565c0;
}
.appt-card-status--completed {
background: #e8f5e9;
color: #2e7d32;
}
.appt-card-status--cancelled {
background: #fce4ec;
color: #c62828;
}
.appt-card-details {
display: flex;
justify-content: space-between;
font-size: 0.88rem;
color: #666;
}
.appt-card-pets {
font-size: 0.85rem;
color: #888;
margin-top: 0.35rem;
}
/* Adoption Pet Selection */
.appt-adopt-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 0.75rem;
margin-top: 0.25rem;
}
.appt-adopt-card {
display: flex;
align-items: center;
gap: 0.75rem;
border: 2px solid #eee;
border-radius: 12px;
padding: 0.65rem 0.85rem;
cursor: pointer;
transition: all 0.2s ease;
user-select: none;
}
.appt-adopt-card:hover {
border-color: orange;
background: #fffaf5;
}
.appt-adopt-card--selected {
border-color: orange;
background: #fff3e0;
}
.appt-adopt-radio {
display: none;
}
.appt-adopt-img {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.appt-adopt-img-placeholder {
width: 48px;
height: 48px;
border-radius: 50%;
background: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.3rem;
flex-shrink: 0;
}
.appt-adopt-info {
display: flex;
flex-direction: column;
gap: 0.05rem;
min-width: 0;
}
.appt-adopt-name {
font-weight: 700;
font-size: 0.9rem;
color: #222;
}
.appt-adopt-detail {
font-size: 0.78rem;
color: #888;
}
@media (max-width: 640px) {
.appt-content {
padding: 1rem;
}
.appt-form,
.appt-history {
padding: 1.25rem;
}
.appt-hero-title {
font-size: 1.6rem;
}
.appt-card-details {
flex-direction: column;
gap: 0.15rem;
}
}
/* Profile Page Layout (with pets section) */
.profile-page-layout {
min-height: calc(100vh - 70px);
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 1rem;
background: #fafafa;
gap: 2rem;
}
/* Profile Pets Section */
.profile-pets-section {
background: white;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
padding: 2rem;
width: 100%;
max-width: 640px;
}
.profile-pets-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.profile-pets-title {
font-size: 1.35rem;
font-weight: 700;
color: #222;
margin: 0;
}
.profile-pets-add-btn {
background: orange;
color: white;
border: none;
border-radius: 20px;
padding: 0.4rem 1rem;
font-size: 0.85rem;
font-weight: 700;
cursor: pointer;
transition: background 0.2s ease;
}
.profile-pets-add-btn:hover {
background: #e69500;
}
.profile-pets-empty {
text-align: center;
color: #888;
font-size: 0.95rem;
padding: 1.5rem 0;
}
.profile-pets-grid {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.profile-pet-card {
display: flex;
align-items: center;
gap: 1rem;
border: 1px solid #eee;
border-radius: 12px;
padding: 0.75rem 1rem;
transition: box-shadow 0.2s ease;
}
.profile-pet-card:hover {
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.profile-pet-card-img-area {
position: relative;
width: 56px;
height: 56px;
flex-shrink: 0;
}
.profile-pet-card-img {
width: 56px;
height: 56px;
border-radius: 50%;
object-fit: cover;
}
.profile-pet-card-placeholder {
width: 56px;
height: 56px;
border-radius: 50%;
background: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}
.profile-pet-upload-label {
position: absolute;
bottom: -2px;
right: -2px;
width: 22px;
height: 22px;
background: white;
border: 1px solid #ddd;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.7rem;
cursor: pointer;
transition: border-color 0.2s ease;
}
.profile-pet-upload-label:hover {
border-color: orange;
}
.profile-pet-upload-input {
display: none;
}
.profile-pet-card-info {
display: flex;
flex-direction: column;
gap: 0.1rem;
flex: 1;
min-width: 0;
}
.profile-pet-card-name {
font-weight: 700;
font-size: 0.95rem;
color: #222;
}
.profile-pet-card-detail {
font-size: 0.82rem;
color: #888;
}
.profile-pet-card-actions {
display: flex;
gap: 0.4rem;
flex-shrink: 0;
}
.profile-pet-edit-btn,
.profile-pet-delete-btn {
padding: 0.3rem 0.7rem;
border-radius: 6px;
font-size: 0.78rem;
font-weight: 600;
cursor: pointer;
border: 1px solid #ddd;
background: white;
transition: all 0.2s ease;
}
.profile-pet-edit-btn:hover {
border-color: orange;
color: orange;
}
.profile-pet-delete-btn:hover {
border-color: #c0392b;
color: #c0392b;
}
/* Pet Add/Edit Form */
.profile-pet-form {
background: #fafafa;
border: 1px solid #eee;
border-radius: 12px;
padding: 1.25rem;
margin-bottom: 1rem;
display: flex;
flex-direction: column;
gap: 0.85rem;
}
.profile-pet-form-title {
font-size: 1rem;
font-weight: 700;
color: #222;
margin: 0;
}
.profile-pet-form-actions {
display: flex;
gap: 0.75rem;
}
.profile-pet-form-actions .appt-submit-btn {
flex: 1;
margin-top: 0;
}
.profile-pet-cancel-btn {
flex: 1;
padding: 0.75rem;
background: white;
color: #666;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.profile-pet-cancel-btn:hover {
border-color: #999;
color: #333;
}