/* Custom styles for PetPacket */

/* Modern Ocean Sage Professional Color Palette */
:root {
    /* Primary Colors */
    --ocean-blue: #0F4C75;
    --sage-green: #7A9A7A;
    --warm-coral: #FF6B6B;
    
    /* Secondary Colors */
    --soft-teal: #4ECDC4;
    --warm-amber: #F7B731;
    
    /* Neutrals */
    --cream: #F8F6F0;
    --light-gray: #E8E8E8;
    --medium-gray: #9B9B9B;
    --charcoal: #2C3E50;
    
    /* Semantic Colors */
    --success: var(--sage-green);
    --warning: var(--warm-amber);
    --error: var(--warm-coral);
    --info: var(--soft-teal);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-gentle {
    animation: pulse 2s infinite;
}

/* Form styling */
.form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-section h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: #4f46e5;
}

/* Input styling */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input:invalid {
    border-color: #ef4444;
}

.form-input:invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Textarea styling */
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Button styling */
.btn-primary {
    background: linear-gradient(135deg, var(--ocean-blue), var(--sage-green));
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 76, 117, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--soft-teal);
    border: 2px solid var(--soft-teal);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--soft-teal);
    color: white;
    transform: translateY(-1px);
}

/* Dynamic list styling */
.dynamic-list-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.dynamic-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, var(--sage-green), #6B8E6B);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(122, 154, 122, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Error message */
.error-message {
    background: linear-gradient(135deg, var(--warm-coral), #E55A5A);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1.25rem;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Profile page specific styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--sage-green) 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 76, 117, 0.3);
}

.profile-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.profile-section h3 {
    color: var(--charcoal);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section .icon {
    color: var(--soft-teal);
    font-size: 1.5rem;
}

/* Medication tracking */
.medication-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.medication-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #4f46e5;
}

/* Emergency contact styling */
.emergency-contact {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

/* Pet photo styling */
.pet-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin: 0 auto 1rem;
    display: block;
}

/* Schedule item styling */
.schedule-item {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-time {
    background: #4f46e5;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Copy button animation */
.copy-success {
    background: #10b981 !important;
    color: white !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .profile-container {
        padding: 1rem;
    }
    
    .profile-header {
        padding: 1.5rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    .pet-photo {
        width: 150px;
        height: 150px;
    }
}