/* Application Styles - ToutouDoc
 * Updated: 2025-07-19
 * Version: 20250719-pet-management-fix
 */

/* Pet Selection Modal Styling */
.pets-selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
    max-width: 100%;
    width: 100%;
}

.pet-selection-card {
    display: flex !important;
    align-items: center !important;
    padding: 16px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: white !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.pet-selection-card:hover {
    border-color: #2AA876 !important;
    background: #f0f9f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(42, 168, 118, 0.1) !important;
}

.pet-selection-card .pet-photo {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 16px 0 0 !important;
    border: 3px solid #f8f9fa !important;
    display: block !important;
}

.pet-selection-card .pet-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.pet-selection-card .pet-info {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
}

.pet-selection-card .pet-info h3 {
    margin: 0 0 5px 0 !important;
    color: #2c3e50 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.pet-selection-card .pet-info p {
    margin: 0 0 3px 0 !important;
    color: #6c757d !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.pet-selection-card .pet-info .pet-age {
    color: #2AA876 !important;
    font-weight: 500 !important;
}

.pet-selection-card .selection-action {
    flex-shrink: 0 !important;
    color: #2AA876 !important;
    font-size: 20px !important;
    margin-left: 15px !important;
}

/* Ensure modal doesn't overflow and is scrollable */
.modal-content {
    max-width: 90vw !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
    }
}

/* Allow pet details modal to expand fully */
.pet-details-modal .modal-content {
    max-height: none !important;
    overflow-y: visible !important;
}

/* AI Suggestions */
.ai-suggestion {
    color: #2AA876;
    font-style: italic;
    display: block;
    margin-top: 2px;
    font-size: 0.85em;
}

/* Extracted Pet Data Section - Now uses Pet AI update card styling */
.extracted-pet-data-section {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

/* When using proposed-updates-card class, apply Pet AI styling */
.extracted-pet-data-section.proposed-updates-card {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 16px;
}

.extracted-pet-data-section.proposed-updates-card .updates-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.extracted-pet-data-section.proposed-updates-card .updates-header .updates-icon {
    font-size: 1.2em;
}

.extracted-pet-data-section.proposed-updates-card .updates-header h4 {
    font-size: 1em;
    font-weight: 600;
    color: #2d7a4f;
    margin: 0;
}

.extracted-pet-data-section.proposed-updates-card .updates-description {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 12px 0;
}

.extracted-pet-data-section.proposed-updates-card .update-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extracted-pet-data-section.proposed-updates-card .update-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.extracted-pet-data-section.proposed-updates-card .update-item:hover {
    border-color: #2AA876;
    box-shadow: 0 2px 6px rgba(42, 168, 118, 0.1);
}

.extracted-pet-data-section.proposed-updates-card .update-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.extracted-pet-data-section.proposed-updates-card .update-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #2AA876;
    cursor: pointer;
}

.extracted-pet-data-section.proposed-updates-card .update-details {
    flex: 1;
    min-width: 0;
}

.extracted-pet-data-section.proposed-updates-card .update-label {
    font-weight: 500;
    color: #374151;
    display: block;
    margin-bottom: 2px;
}

.extracted-pet-data-section.proposed-updates-card .update-values {
    font-size: 0.9em;
    color: #6b7280;
    word-break: break-word;
}

.extracted-pet-data-section.proposed-updates-card .current-value {
    color: #9ca3af;
    text-decoration: line-through;
}

.extracted-pet-data-section.proposed-updates-card .new-value {
    color: #2AA876;
    font-weight: 500;
}

.extracted-pet-data-section.proposed-updates-card .edit-update-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.85em;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.extracted-pet-data-section.proposed-updates-card .edit-update-btn:hover {
    color: #0077B6;
}

/* Legacy styles for backwards compatibility */
.extracted-pet-data-section .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2d7a4f;
    margin-bottom: 8px;
}

.extracted-pet-data-section .section-header i {
    color: #2AA876;
}

.extracted-pet-data-section .section-description {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 12px 0;
}

.extracted-data-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extracted-data-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.extracted-data-item:hover {
    border-color: #2AA876;
    box-shadow: 0 2px 8px rgba(42, 168, 118, 0.15);
}

.extracted-data-item input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #2AA876;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.extracted-data-item i {
    color: #0077B6;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.extracted-data-item .field-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.extracted-data-item .field-value {
    color: #666;
    flex: 1;
    word-break: break-word;
    white-space: pre-line;
}

/* Edit button for extracted fields */
.edit-extracted-field-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: auto;
    font-size: 0.85em;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.edit-extracted-field-btn:hover {
    color: #0077B6;
}

/* Edit mode for extracted fields */
.extracted-data-item.editing {
    flex-wrap: wrap;
}

.extracted-field-edit-input {
    flex: 1;
    min-width: 150px;
    padding: 8px 10px;
    border: 1px solid #0077B6;
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    resize: vertical;
}

.extracted-field-edit-input:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

textarea.extracted-field-edit-input {
    min-height: 60px;
}

.extracted-field-edit-actions {
    display: flex;
    gap: 4px;
    margin-left: 4px;
}

.extracted-field-edit-actions button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.extracted-field-edit-actions .edit-save-btn {
    color: #2AA876;
    border-color: #2AA876;
}

.extracted-field-edit-actions .edit-save-btn:hover {
    background: #2AA876;
    color: white;
}

.extracted-field-edit-actions .edit-cancel-btn {
    color: #e74c3c;
    border-color: #e74c3c;
}

.extracted-field-edit-actions .edit-cancel-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Pet Management Styles */
.pets-list-container {
    padding: 20px 0;
}

.pets-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.pets-list-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pet-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.pet-card-photo {
    text-align: center;
    margin-bottom: 15px;
}

.pet-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.pet-card-info {
    text-align: center;
}

.pet-card-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.pet-card-details {
    margin: 0 0 4px 0;
    color: #6c757d;
    font-size: 14px;
}

.pet-card-age {
    margin: 0;
    color: #007bff;
    font-size: 12px;
    font-weight: 500;
}

.pet-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f8f9fa;
    color: #007bff;
}

.pet-card-share-button {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.pet-card-share-button .btn {
    width: 100%;
    justify-content: center;
}

.no-pets-message {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-pets-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-pets-message h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.no-pets-message p {
    margin: 0 0 20px 0;
}

/* Pet Profile Styles */
.pet-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.pet-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.back-to-pets {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-pet-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-profile-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px;
}

.pet-profile-photo {
    text-align: center;
    margin-bottom: 12px;
}

.pet-photo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
}

.pet-name {
    text-align: center;
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
}

.pet-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 12px;
}

.pet-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #2c3e50;
}

.pet-health-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #f8f9fa;
}

.pet-health-info h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
}

.health-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.health-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.health-value {
    color: #2c3e50;
    line-height: 1.5;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pets-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pet-profile-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .pet-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .pets-list-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}

/* Color Palette */
:root {
    --primary-blue: #AADCF5;
    --secondary-blue-chien:#4FA4D6;
    --secondary-blue-chat:#76B8E1;
    --beige: #FDF6ED;
    --green-background: #C4E7DA;
    --text-dark-blue: #19253B;
    --alert: #dc2626;
    --success: #10b981;
    --info: #3b82f6;
    --text-black: #000000;
    --text-dark: #1e293b;
    --text-light: #6b7280;
    --warning: #facc15;
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Required field asterisk styling */
.required-asterisk {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

/* Form input styling with required asterisk in placeholder */
input[placeholder*="*"]::placeholder {
    color: #6b7280;
}

/* Select option styling for placeholders with asterisks */
select option[value=""]:first-child {
    color: #6b7280;
    font-style: italic;
}

/* Document Link Styles */
.doc-link {
    color: #6366f1;
    text-decoration: none;
    margin-left: 8px;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.doc-link:hover {
    background-color: #f1f5f9;
    color: #4f46e5;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.document-item:hover {
    background-color: #f8fafc;
}

/* Documents Filter Section Styles */
.documents-filter-section {
    margin-bottom: 32px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Reminders Filter Styles */
.reminders-filters {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-group .btn {
    margin-top: 18px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    flex: 1 1 auto;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.filter-group select {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-group select:hover {
    border-color: #9ca3af;
}

.clear-filters-btn {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.clear-filters-btn:hover {
    border-color: #dc2626;
    background: #fef2f2;
    color: #dc2626;
}

/* Form Templates Grid */
.form-templates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.form-template-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-template-card:hover {
    border-color: #6366f1;
    background: #fafaff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.1);
}

.template-icon {
    font-size: 48px;
    color: #6366f1;
    margin-bottom: 16px;
}

.form-template-card h3 {
    color: #1f2937;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.form-template-card p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Pet Card Medical Summary */
.medical-summary-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.medical-summary-section h3 {
    color: #1f2937;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.medical-summary-section h3::before {
    content: "📋";
    font-size: 14px;
}

.summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.summary-card.empty {
    text-align: center;
    color: #6b7280;
}

.summary-card.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.summary-header h4 {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.summary-date {
    font-size: 12px;
    color: #6b7280;
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
}

.summary-content p {
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.empty-summary {
    padding: 20px 0;
}

.empty-summary i {
    font-size: 24px;
    color: #d1d5db;
    margin-bottom: 8px;
}

.empty-summary p {
    margin: 8px 0 4px 0;
    color: #6b7280;
}

.empty-summary small {
    color: #9ca3af;
    font-size: 11px;
}

.loading-summary {
    color: #6b7280;
    font-style: italic;
    font-size: 13px;
}

/* Veterinary Form Enhancements */
.pet-info-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.pet-info-section h3 {
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-info-section h3::before {
    content: "🐾";
    font-size: 16px;
}

.pet-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-input.readonly {
    background-color: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
    cursor: not-allowed;
}

.previous-report-section {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.previous-report-section h3 {
    color: #0c4a6e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.previous-report-section h3::before {
    content: "📋";
    font-size: 16px;
}

.previous-report-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.report-header h4 {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.report-date {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
}

.report-summary {
    margin-bottom: 16px;
}

.report-summary p {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
}

.no-previous-report {
    text-align: center;
    padding: 24px;
    color: #6b7280;
}

.no-previous-report.error {
    color: #dc2626;
}

.no-previous-report i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.no-previous-report p {
    margin: 0;
    font-style: italic;
}

.loading-previous {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 16px;
}

/* ===========================================
   CLEAN MOBILE-ONLY DOCUMENTS GRID SYSTEM  
   =========================================== */

/* Documents Container */
.documents-list {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* List Header */
.list-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.list-header h4 {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Documents Grid - Single Column Mobile */
.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Individual Document Card */
.document-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.document-card:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Document Card Header */
.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.document-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 16px;
    flex-shrink: 0;
}

/* Document Type Badges */
.document-type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.document-type-badge.vaccination {
    background: #dcfce7;
    color: #166534;
}

.document-type-badge.prescription {
    background: #dbeafe;
    color: #1e40af;
}

.document-type-badge.medical_report {
    background: #fef3c7;
    color: #92400e;
}

.document-type-badge.lab_result {
    background: #f3e8ff;
    color: #7c3aed;
}

.document-type-badge.insurance {
    background: #e0f2fe;
    color: #0369a1;
}

.document-type-badge.other {
    background: #f3f4f6;
    color: #6b7280;
}

/* Document Content */
.document-content {
    margin-bottom: 12px;
}

.document-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.document-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px 0;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Document Meta Information */
.document-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.document-meta i {
    width: 12px;
    flex-shrink: 0;
}

/* Ensure no element exceeds container width */
.documents-section * {
    max-width: 100%;
    box-sizing: border-box;
}

.pet-name {
    font-weight: 500;
}

.document-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.action-btn {
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.action-btn.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.documents-content {
    background: white;
    border-radius: 8px;
}

/* Documents Section Header Actions - Improved Layout */
#documents-section .section-header {
    flex-wrap: wrap;
    gap: 16px;
}

#documents-section .section-header h1 {
    flex: 1;
    min-width: 200px;
}

#documents-section .header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#documents-section .header-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

#documents-section .header-actions .btn-secondary {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
}

#documents-section .header-actions .btn-secondary:hover {
    background: #f1f5f9;
    border-color: #0077B6;
    color: #0077B6;
}

#documents-section .header-actions .btn-secondary i {
    font-size: 14px;
    color: #0077B6;
}

/* Mobile: Stack buttons full width */
@media (max-width: 480px) {
    #documents-section .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    #documents-section .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.pet-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
}

.pet-btn:hover {
    border-color: #6366f1;
    background: #f1f5f9;
    color: #4f46e5;
    transform: translateY(-1px);
}

.pet-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pet-btn i {
    font-size: 16px;
}

.pet-documents-section {
    margin-top: 24px;
}

.pet-documents-section h3 {
    color: #1e293b;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .filter-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .filter-header h3 {
        text-align: center;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
        flex: none;
    }
    
    .clear-filters-btn {
        align-self: center;
        min-width: 200px;
    }
    
    .pet-selector {
        justify-content: center;
    }
    
    .pet-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .add-doc-btn {
        align-self: center;
        width: 100%;
        max-width: 200px;
    }
}

/* Upload Options and Camera Styles */
.upload-options {
    margin-top: 8px;
}

.upload-tabs {
    display: flex;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #6366f1;
    background: #f1f5f9;
}

.tab-btn.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: #f8fafc;
}

.upload-tab {
    margin-top: 16px;
}

.camera-container {
    text-align: center;
    padding: 16px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.camera-controls {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.camera-controls button {
    min-width: 140px;
}

.camera-preview {
    margin: 16px 0;
}

#cameraVideo, #capturedImage {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    max-height: 300px;
}

/* Pet Selection Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.pet-selection-modal {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.pet-selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px auto 0;
    max-width: 280px;
    width: 100%;
}

@media (max-width: 640px) {
    .pet-selection-grid {
        max-width: 100%;
        padding: 0 12px;
    }
}

.pet-selection-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .pet-selection-card {
        padding: 8px;
        gap: 6px;
    }
}

.pet-selection-card:hover {
    border-color: #6366f1;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.pet-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .pet-avatar {
        width: 40px;
        height: 40px;
    }
}

.pet-avatar .pet-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    overflow: hidden;
}

.pet-initial {
    font-size: 20px;
    font-weight: bold;
    color: #6366f1;
}

.pet-info h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.pet-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 640px) {
    .pet-info h4 {
        font-size: 14px;
    }
    
    .pet-info p {
        font-size: 12px;
    }
}

.selection-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pet-selection-card:hover .selection-indicator {
    opacity: 1;
}

.selection-indicator i {
    color: white;
    font-size: 12px;
}

/* Selected pet card styling */
.pet-selection-card.selected {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.pet-selection-card.selected .selection-indicator {
    opacity: 1;
}

/* Selected pet preview styling */
.selected-pet-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #10b981;
    border-radius: 12px;
    margin-top: 16px;
}

.selected-pet-display .pet-avatar {
    width: 50px;
    height: 50px;
}

.selected-pet-display .pet-details {
    flex: 1;
}

.selected-pet-display .pet-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.selected-pet-display .pet-details p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.selected-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #10b981;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.selected-badge i {
    font-size: 12px;
}

/* No pets message styling */
.no-pets-message {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.no-pets-message p {
    margin: 0;
    font-size: 16px;
}

/* Share Pet Action Styling */
.share-pet-action {
    text-align: center;
    padding: 40px 20px;
}

.share-pet-action h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 24px;
}

.share-pet-action p {
    margin: 0 0 30px 0;
    color: #64748b;
    font-size: 16px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    min-width: 200px;
}

/* Pet Sharing Interface Styles */
.pets-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.pet-share-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pet-share-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.pet-share-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-share-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.pet-share-info {
    flex: 1;
    min-width: 0;
}

.pet-share-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.pet-share-info p {
    margin: 0 0 2px 0;
    font-size: 14px;
    color: #6b7280;
}

.pet-share-info .pet-age {
    font-size: 12px;
    color: #9ca3af;
}

.pet-share-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #6366f1;
    font-size: 14px;
}

.pet-share-action i {
    font-size: 18px;
}

.pet-share-action span {
    font-weight: 500;
}

.pet-sharing-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.pet-sharing-header h2 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

.pet-sharing-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

/* Empty state for pet sharing */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state i {
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 20px;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 24px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Empty state button - mobile-friendly sizing */
.empty-state .btn,
.empty-state .btn.btn-primary,
.empty-state-clean .btn,
.empty-state-clean .btn.btn-primary {
    padding: 11px 20px !important;
    font-size: 16px !important;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-height: 44px;
    line-height: 1.4;
}

/* Clean empty state - no filters, focused experience */
.empty-state-clean {
    padding: 60px 20px;
}

.empty-state-clean > i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 20px;
    display: block;
}

.empty-state-clean h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #374151;
}

.empty-state-clean p {
    max-width: 280px;
    margin: 0 auto 32px auto !important;
    color: #6b7280;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* Error state for pet sharing */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #ef4444;
}

.error-state i {
    color: #fca5a5;
    margin-bottom: 16px;
}

.error-state h3 {
    margin: 0 0 8px 0;
    color: #dc2626;
    font-size: 20px;
    font-weight: 600;
}

.error-state p {
    margin: 0 0 20px 0;
    font-size: 16px;
}

/* Pet Selection Modal Styles */
.pet-selection-modal .modal-body {
    padding: 20px;
}

.pet-selection-modal .pet-selection-grid {
    margin-top: 20px;
}

/* Share Form Modal Styles */
.share-form-modal {
    max-width: 500px;
    width: 90%;
}

.share-form-modal .modal-body {
    padding: 20px;
}

.share-form-modal .form-group {
    margin-bottom: 20px;
}

.share-form-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.share-form-modal .form-group input,
.share-form-modal .form-group select,
.share-form-modal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.share-form-modal .form-group input:focus,
.share-form-modal .form-group select:focus,
.share-form-modal .form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.share-form-modal .form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.share-form-modal .button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.share-form-modal .button-group .btn {
    flex: 1;
}

/* Selected pet in sharing modal */
.selected-pet-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #10b981;
    border-radius: 12px;
    margin-bottom: 20px;
}

.selected-pet-info .pet-avatar {
    width: 50px;
    height: 50px;
}

.selected-pet-info .pet-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.selected-pet-info .pet-details p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* Modern Upload Interface Styles - Horizontal Layout */
.upload-method-selection {
    margin: 16px 0;
}

.upload-options-horizontal {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.upload-option-btn-horizontal {
    flex: 1;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 80px;
    justify-content: center;
}

.upload-option-btn-horizontal:hover {
    border-color: #6366f1;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.upload-option-btn-horizontal:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.upload-icon-horizontal {
    font-size: 24px;
    margin-bottom: 4px;
}

.upload-label-horizontal {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
}

/* File Preview Section */
.file-preview-section {
    margin: 16px 0;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}

.preview-container {
    padding: 0;
}

.preview-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.preview-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.remove-file-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-file-btn:hover {
    background: #dc2626;
}

.preview-content {
    padding: 20px;
}

.image-preview, .file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.file-preview {
    text-align: center;
}

.file-icon-large {
    margin-bottom: 8px;
}

.file-info {
    text-align: center;
}

.file-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-word;
}

.file-size {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 2px;
}

.file-type {
    color: #64748b;
    font-size: 11px;
    font-style: italic;
}

.preview-actions {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

/* Camera Section */
.camera-section {
    margin: 16px 0;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.camera-container {
    margin-bottom: 16px;
}

.camera-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.camera-controls button {
    min-width: 140px;
}

/* Form validation states */
#submitDocumentBtn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

#submitDocumentBtn:disabled:hover {
    background: #e2e8f0;
    color: #94a3b8;
    transform: none;
    box-shadow: none;
}

/* Full-Screen Camera Styles */
#fullscreenCameraOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.fullscreen-camera-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    position: relative;
    z-index: 10;
}

.camera-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.camera-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.camera-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.camera-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#fullscreenCameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    display: flex;
    justify-content: center;
}

.camera-controls-fullscreen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
}

.camera-flip-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background-color 0.2s;
}

.camera-flip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.camera-capture-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.capture-circle {
    width: 80px;
    height: 80px;
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.capture-circle:active {
    transform: scale(0.95);
}

.capture-inner {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

.camera-spacer {
    width: 50px;
}

/* Field Validation Messages */
.field-validation-message {
    margin-top: 4px;
    margin-bottom: 8px;
}

.field-validation-message span {
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
}

/* Analysis Progress Styles */
.analysis-progress {
    margin: 16px 0;
    padding: 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.analysis-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.analysis-spinner {
    color: #6366f1;
    font-size: 32px;
}

.analysis-text h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.analysis-text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
}

/* Preview Confirmation Styles */
.preview-confirmation {
    margin: 16px 0;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.confirmation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.confirmation-header i {
    font-size: 24px;
    margin-bottom: 4px;
}

.confirmation-header h4 {
    margin: 0;
    color: #065f46;
    font-size: 16px;
    font-weight: 600;
}

.confirmation-header p {
    margin: 0;
    color: #047857;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .upload-options-horizontal {
        flex-direction: column;
        gap: 8px;
    }
    
    .upload-option-btn-horizontal {
        min-height: 70px;
        padding: 12px 8px;
    }
    
    .upload-icon-horizontal {
        font-size: 20px;
    }
    
    .upload-label-horizontal {
        font-size: 12px;
    }
    
    .camera-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .camera-controls button {
        width: 100%;
        max-width: 200px;
    }
    
    .preview-header {
        padding: 12px 16px;
    }
    
    .preview-content {
        padding: 16px;
    }
    
    .preview-actions {
        padding: 12px 16px;
    }
    
    .camera-header {
        padding: 12px 16px;
    }
    
    .camera-footer {
        padding: 16px;
    }
    
    .camera-controls-fullscreen {
        max-width: 250px;
    }
    
    .capture-circle {
        width: 70px;
        height: 70px;
        border-width: 3px;
    }
    
    .capture-inner {
        width: 52px;
        height: 52px;
    }
    
    .camera-flip-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Documents Modal Styles */
.documents-modal {
    max-width: 600px;
    width: 90%;
}

/* Documents List Item - DELETED FOR RECREATION */

.doc-icon {
    margin-right: 15px;
    color: #6366f1;
    font-size: 20px;
}

.doc-info {
    flex: 1;
}

.doc-info h4 {
    margin: 0 0 5px 0;
    color: #1e293b;
    font-size: 16px;
}

.doc-type {
    margin: 0 0 3px 0;
    color: #6366f1;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.doc-date {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Document Preview Styles */
.document-preview {
    margin-top: 20px;
}

.preview-container {
    background: #f8fafc;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.document-image:hover {
    transform: scale(1.02);
}

.preview-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7280;
}

.preview-fallback i {
    font-size: 48px;
    margin-bottom: 10px;
}

.preview-fallback p {
    margin: 0;
    font-size: 16px;
}

.document-actions {
    text-align: center;
}

.document-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.document-actions .btn-primary:hover {
    background: #4f46e5;
}

.document-actions .btn-primary i {
    font-size: 16px;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #008FE4 0%, #76B9E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    animation: splashFadeIn 0.8s ease-in-out;
}

.splash-logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
    animation: splashLogoScale 1.2s ease-in-out;
}

@keyframes splashFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashLogoScale {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hide main content during splash */
body.splash-active .navbar,
body.splash-active .mobile-nav-overlay,
body.splash-active .main-content,
body.splash-active .section,
body.splash-active .auth-section {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Allow page scrolling on Pet AI for mobile */

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Safe area padding for mobile devices (notch, status bar) */
    padding-top: max(env(safe-area-inset-top, 0px), 28px);
}

/* For desktop, remove the extra padding */
@media screen and (min-width: 769px) {
    .navbar {
        padding-top: 0;
    }
}

/* Hide navbar on login page and during onboarding */
body.login-page .navbar,
body.onboarding-active .navbar {
    display: none !important;
}

/* Adjust main content padding when navbar is hidden */
body.login-page main,
body.onboarding-active main {
    padding-top: 0 !important;
}

/* Adjust auth section layout when navbar is hidden */
body.login-page #auth-section,
body.onboarding-active #auth-section {
    padding-top: 0px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #0077B6;
    gap: 12px;
}

.nav-brand i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-logo-circle {
    height: 85px;
    width: 85px;
    object-fit: contain;
}

.nav-brand-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #19253B;
    letter-spacing: -0.5px;
}

.nav-logo {
    height: 60px;
    width: auto;
    max-width: 600px;
    object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .nav-logo-circle {
        height: 68px;
        width: 68px;
    }
    
    .nav-brand-text {
        font-size: 32px;
        font-weight: 700;
    }
    
    .nav-logo {
        height: 45px;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .nav-logo-circle {
        height: 60px;
        width: 60px;
    }
    
    .nav-brand-text {
        font-size: 28px;
        font-weight: 700;
    }
    
    .nav-brand {
        gap: 8px;
    }
    
    .nav-logo {
        height: 40px;
        max-width: 250px;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile Menu Button Spacing */
.mobile-menu-btn {
    margin-left: 30px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
    margin: 0;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Add extra margin for mobile safe area padding */
@media screen and (max-width: 768px) {
    .main-content {
        margin-top: calc(70px + max(env(safe-area-inset-top, 0px), 28px));
        min-height: calc(100vh - 70px - max(env(safe-area-inset-top, 0px), 28px));
    }
}

/* Authentication Section */
.auth-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    margin-bottom: 20px;
}

.login-logo {
    width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: none;
}

.auth-header i {
    font-size: 48px;
    color: #6366f1;
    margin-bottom: 15px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #000000;
}

.auth-header p {
    color: #000000;
    font-size: 16px;
}

/* Hide auth-header during onboarding steps 3, 4, and 5 */
#register-step-3.active ~ .auth-header,
#register-step-4.active ~ .auth-header,
#register-step-5.active ~ .auth-header,
.onboarding-step#register-step-3.active .auth-header,
.onboarding-step#register-step-4.active .auth-header,
.onboarding-step#register-step-5.active .auth-header {
    display: none;
}

/* Alternative approach: hide auth-header when specific steps are active */
body.step-3-active .auth-header,
body.step-4-active .auth-header,
body.step-5-active .auth-header {
    display: none;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: white;
}

.custom-dropdown input:focus {
    outline: none;
    border-color: #6366f1;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    font-size: 12px;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown-option {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.dropdown-option:hover,
.dropdown-option.highlighted {
    background-color: #f3f4f6;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

.custom-dropdown.open input {
    border-radius: 8px 8px 0 0;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
}

.auth-switch a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: #6366f1;
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background: #5855eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #000000;
    color: white;
}

.btn-secondary:hover {
    background: #333333;
}

/* Full-width button (like reminders page) */
.btn-full-width {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
}

/* Section title (simple h1 header) */
h1.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding: 0;
}

/* Refactored Onboarding Styles */
.auth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 2rem;
    padding-top: 40px;
    background: none;
    overflow-y: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.auth-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.auth-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.auth-form, #onboarding-container {
    background: none;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: none;
    width: 100%;
    max-width: 500px;
    transition: all 0.3s ease;
}

/* Onboarding Step Management */
#onboarding-container {
    position: relative;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    padding-bottom: 40px;
}

.onboarding-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.onboarding-step.active {
    display: block;
}

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

/* Form styling improvements */
.onboarding-step h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
}

/* Onboarding Consent Checkboxes */
.consent-section {
    margin: 20px 0;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.consent-checkbox-item {
    margin-bottom: 12px;
}

.consent-checkbox-item:last-child {
    margin-bottom: 0;
}

.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
}

.consent-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0077B6;
}

.consent-text {
    flex: 1;
}

.consent-link {
    color: #0077B6;
    text-decoration: underline;
    cursor: pointer;
}

.consent-link:hover {
    color: #005a8c;
}

.required-asterisk {
    color: #EF4444;
    font-weight: bold;
}

.consent-checkbox-item.optional .consent-text {
    color: #6B7280;
}

.consent-checkbox-item.required {
    background: #FEF3C7;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.form-actions .btn {
    flex: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 1rem;
        min-height: 100vh;
    }
    
    .auth-form, #onboarding-container {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    /* Keep buttons on same line for onboarding steps */
    .onboarding-step .form-actions {
        flex-direction: row;
    }
    
    /* Stack buttons vertically only for auth forms (login/register) */
    .auth-form .form-actions {
        flex-direction: column;
    }
    
    .auth-form .form-actions .btn {
        width: 100%;
    }
}
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1;
    padding: 20px 0;
    min-height: 100%;
    overflow: visible;
    box-sizing: border-box;
}

/* Removed conflicting absolute positioning that was causing swiper container collapse */

.onboarding-step.slide-out-left {
    opacity: 0;
    transform: translateX(-100%);
}

.onboarding-step.slide-out-right {
    opacity: 0;
    transform: translateX(100%);
}

.onboarding-step.slide-in-left {
    animation: slideInFromLeft 0.3s ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Onboarding specific form actions */
.onboarding-step .form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding: 20px 0 40px 0;
    position: relative;
    z-index: 10;
}

/* Pagination Dots */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 30px 0;
    padding: 0 20px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.pagination-dot.active {
    background-color: #0077B6;
    border-color: #0077B6;
    transform: scale(1.2);
}

.pagination-dot:hover {
    background-color: #b0b0b0;
    border-color: #b0b0b0;
}

.pagination-dot.active:hover {
    background-color: #005a8a;
    border-color: #005a8a;
}

/* Form Row for Side-by-Side Fields */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group.half-width {
    flex: 1;
    margin-bottom: 0;
}

/* Photo Upload Button in Step 2 */
.btn-photo-upload {
    background: #000000;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-photo-upload:hover {
    background: linear-gradient(135deg, #005f8a, #0086b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-photo-upload i {
    font-size: 18px;
}

/* Mini Photo Preview in Step 2 */
.photo-preview-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
}

.photo-preview-mini img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #28a745;
}

.photo-status {
    color: #28a745;
    font-weight: 500;
    font-size: 14px;
}

/* Photo Crop Modal - Removed duplicate rules (see line 3594+) */

/* Grooming Form Styling */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-group .btn-primary {
    background: #000000;
    color: white;
}

.button-group .btn-primary:hover {
    background: linear-gradient(135deg, #005f8a, #0086b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.button-group .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

.button-group .btn-secondary:hover {
    background: linear-gradient(135deg, #545b62, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.help-text {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Pet Species Selection Styling */
.pet-species-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 18px;
    color: #2C2C2C;
}

.species-text {
    font-weight: 500;
    color: #2C2C2C;
}

.species-dropdown {
    background: #0077B6;
    color: white;
    border: 2px solid #0077B6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.3s;
}

.species-dropdown:focus {
    outline: none;
    background: #005f8d;
    border-color: #005f8d;
}

.species-dropdown option {
    background: white;
    color: #2C2C2C;
}

/* Breed Selection Styling */
.breed-row {
    margin-bottom: 30px;
}

.breed-text {
    font-size: 18px;
    font-weight: 500;
    color: #2C2C2C;
    display: block;
    margin-bottom: 12px;
}

.form-group.breed-input {
    margin-bottom: 0;
}

.breed-input input {
    border: 2px solid #2AA876;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.breed-input input:focus {
    outline: none;
    border-color: #228a63;
    box-shadow: 0 0 0 3px rgba(42, 168, 118, 0.1);
}

/* Advance Notice Input Styling */
.advance-notice-input {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.advance-notice-input input[type="number"] {
    flex: 0 0 120px;
    border: 2px solid #2AA876;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    text-align: center;
    transition: border-color 0.3s;
}

.advance-notice-input select {
    flex: 1;
    border: 2px solid #2AA876;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s;
}

.advance-notice-input input[type="number"]:focus,
.advance-notice-input select:focus {
    border-color: #2AA876;
    box-shadow: 0 0 0 2px rgba(42, 168, 118, 0.2);
    outline: none;
}


/* Create New Account Button */
.btn-create-account {
    background: #000000; /* Different green background color */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 15px;
    justify-content: center;
    text-align: center;
}

.btn-create-account:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* Reset Password Button */
.btn-reset-password {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
    justify-content: center;
    text-align: center;
}

.btn-reset-password:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

/* Sign In Button */
.btn-sign-in {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
    justify-content: center;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.btn-sign-in:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-1px);
}

/* Next Button Styling */
.btn-next {
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    flex: 0 0 auto;
    width: 120px;
}

.btn-next:hover {
    background: #005f8d;
    transform: translateY(-1px);
}

/* Swipe Instructions */
.swipe-instruction {
    display: none; /* HIDDEN: Navigation via buttons only */
    text-align: center;
    margin: 15px 0 25px 0;
    padding: 0px;
    background: none;
    border-radius: 8px;
    border: none;
}

.swipe-instruction p {
    margin: 0;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
}

.swipe-instruction .divider {
    margin: 0 10px;
    opacity: 0.7;
}

.swipe-instruction i {
    margin-right: 5px;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
    width: 100%;
}

.form-actions .btn {
    flex: 1;
    min-width: 0;
}

/* When there's only one button, center it */
.form-actions:has(button:only-child) {
    justify-content: center;
}

/* For browsers that don't support :has(), fallback for single button */
.form-actions button:only-child {
    margin: 0 auto;
}

/* Form actions button sizing */
.form-actions .btn-secondary {
    flex: 0 0 auto;
    width: 120px;
    background-color: #6b7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-actions .btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
}

/* Symptom tracker form - compact side-by-side buttons like reminder form */
.inline-symptom-form .form-actions {
    display: flex !important;
    flex-direction: row !important; /* Override mobile column layout */
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.inline-symptom-form .form-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    width: auto !important; /* Override mobile width: 100% */
}

.inline-symptom-form .form-actions .btn-outline {
    background: #ffffff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 8px 16px;
}

.inline-symptom-form .form-actions .btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.inline-symptom-form .form-actions .btn-primary {
    background: #0077B6;
    color: #ffffff;
    border: 2px solid #0077B6;
    padding: 10px 20px;
}

.inline-symptom-form .form-actions .btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Force override for mobile media queries */
@media (max-width: 768px) {
    .inline-symptom-form .form-actions {
        flex-direction: row !important;
        justify-content: flex-end !important;
    }
    
    .inline-symptom-form .form-actions .btn {
        width: auto !important;
    }
}

/* Compact symptom display in event details */
.symptom-triad-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.symptom-triad-compact .triad-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #495057;
}

.symptom-triad-compact .triad-item i {
    color: #6c757d;
    font-size: 11px;
}

.symptom-details-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.symptom-details-compact .detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
    line-height: 1.3;
}

.symptom-details-compact .detail-item i {
    color: #6c757d;
    font-size: 11px;
    width: 12px;
    flex-shrink: 0;
}

.symptom-details-compact .progression-better {
    color: #28a745;
}

.symptom-details-compact .progression-worse {
    color: #dc3545;
}

.symptom-media-compact {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.symptom-photo-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.symptom-photo-thumb:hover {
    transform: scale(1.05);
    border-color: #0077B6;
}

.symptom-video-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.symptom-detail-card {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.symptom-detail-card:last-child {
    margin-bottom: 0;
}

/* Update Primary Button Colors to Match Color Palette */
.btn-primary {
    background: #000000;
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* Pet Name Dynamic Text Update */
#petNameText.has-name {
    color: #0077B6;
    font-weight: 600;
}

/* Photo Upload Styling */
.photo-upload-section {
    text-align: center;
    padding: 40px 20px;
}

.upload-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-camera, .btn-upload {
    padding: 15px 30px;
    border: 2px solid #0077B6;
    background: white;
    color: #0077B6;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-camera:hover, .btn-upload:hover {
    background: #0077B6;
    color: white;
    transform: translateY(-2px);
}

.photo-preview {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #e0e7ff;
    border-radius: 12px;
    background: #f8fafc;
}

.photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0077B6;
}

/* Photo Crop Modal */
.photo-crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Hidden by default, shown via .show() method */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.photo-crop-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.photo-crop-container {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    height: auto;
    max-height: 70vh;
    width: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-crop-header {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.photo-crop-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.photo-crop-content {
    overflow: auto;
    padding: 20px;
}

/* Photo Options */
.photo-options {
    text-align: center;
    padding: 10px 0;
}

.option-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.option-buttons .btn {
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

/* Camera Interface */
.camera-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.camera-view-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
    position: relative;
}

#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-controls-bottom {
    flex-shrink: 0;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.btn-capture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dc2626;
    border: 3px solid white;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-capture:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.camera-controls-bottom .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.camera-controls-bottom .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Mobile responsiveness for camera interface */
@media (max-width: 768px) {
    .camera-controls-bottom {
        gap: 20px;
        padding: 15px;
        min-height: 80px;
    }
    
    .btn-capture {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .camera-controls-bottom .btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .photo-crop-container {
        height: 90vh;
        max-height: none;
    }
}

/* Crop Interface (Croppie) */
.crop-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.crop-hint {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(0, 119, 182, 0.05);
    border-radius: 8px;
}

.camera-hint {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.croppie-container {
    flex: 0 0 auto; /* Don't expand to fill all space */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    max-height: 500px;
    width: 100%;
    position: relative; /* For absolute positioned slider */
    padding-bottom: 40px; /* Space for slider at bottom */
}

/* Croppie customization */
.croppie-container .cr-boundary {
    margin: 0 auto;
    max-width: 100%;
    touch-action: manipulation; /* Enable all touch gestures */
}

.croppie-container .cr-viewport {
    border: 3px solid #0077B6 !important;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5) !important;
    touch-action: manipulation; /* Enable touch on viewport */
}

/* Enable touch on the actual image */
.croppie-container .cr-image {
    touch-action: manipulation;
    user-select: none;
}

/* Horizontal slider positioning */
.croppie-container .cr-slider-wrap {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 200px;
    margin: 0;
    z-index: 10;
}

.croppie-container .cr-slider {
    width: 100%;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

/* Slider thumb styling */
.croppie-container .cr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0077B6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.croppie-container .cr-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0077B6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mobile touch-optimized Croppie */
@media (max-width: 768px) {
    .croppie-container {
        min-height: 280px;
        max-height: 350px; /* Prevent it from taking all space */
        flex: 0 0 auto; /* Don't expand to fill */
        position: relative; /* For absolute positioned slider */
    }
    
    .croppie-container .cr-slider-wrap {
        width: 70%;
        max-width: 180px;
        bottom: 15px;
    }
    
    .croppie-container .cr-slider {
        height: 6px; /* Slightly thicker on mobile */
    }
    
    .croppie-container .cr-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .croppie-container .cr-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
    
    .crop-interface {
        gap: 8px; /* Add spacing between elements */
        overflow-y: auto; /* Allow scrolling if needed */
    }
    
    .crop-hint {
        font-size: 12px;
        padding: 6px;
        margin-bottom: 8px;
    }
}

.crop-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 0;
}

.crop-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-rotate {
    padding: 10px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.btn-rotate:hover {
    background: #e2e8f0;
    color: #334155;
    transform: scale(1.05);
}

.btn-rotate:active {
    transform: scale(0.95);
}

.btn-back,
.btn-switch-camera {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.btn-back:hover,
.btn-switch-camera:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .crop-controls {
        padding: 10px 0;
    }
    
    .crop-actions {
        gap: 8px;
    }
    
    .btn-rotate {
        padding: 8px 12px;
        min-width: 40px;
        min-height: 40px;
        font-size: 14px;
    }
}

/* Mobile Responsive for Onboarding */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group.half-width {
        margin-bottom: 20px;
    }
    
    .pet-species-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
    }
    
    .species-dropdown {
        width: 100%;
        min-width: auto;
    }
    
    .form-actions {
        justify-content: center;
    }
    
    .btn-next {
        float: none;
        width: 100%;
    }

    .upload-buttons {
        flex-direction: column;
        align-items: center;
    }

    .upload-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .photo-crop-container {
        max-width: 95vw;
        max-height: 95vh;
    }

    .photo-crop-content {
        padding: 20px;
    }

    .option-buttons {
        flex-direction: column;
        align-items: center;
    }

    .crop-controls {
        flex-direction: column;
        gap: 15px;
    }

    .crop-tools {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Circular crop overlay */
.circular-crop-overlay {
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Enhanced cropper styling for circular crop */
.cropper-container .cropper-crop-box {
    border-radius: 50%;
    overflow: hidden;
}

.cropper-container .cropper-view-box {
    border-radius: 50%;
    overflow: hidden;
}

/* Enhanced Vet Report Modal Styling */
.vet-report-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.vet-report-details {
    padding: 20px;
}

.visit-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.visit-date, .document-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
}

.visit-date i, .document-type i {
    color: #3b82f6;
    font-size: 16px;
}

.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-card .card-header {
    background: #f9fafb;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card .card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.info-card .card-header i {
    color: #6b7280;
    font-size: 16px;
}

.info-card .card-content {
    padding: 20px;
}

.info-card .card-content p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #374151;
}

.info-card .card-content p:last-child {
    margin-bottom: 0;
}

.visit-summary {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #10b981;
    line-height: 1.6;
    color: #374151;
}

.attachments-list {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.attachment-item:last-child {
    border-bottom: none;
}

.attachment-item::before {
    content: "📎";
    font-size: 14px;
}

.info-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.info-card .btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.info-card .btn i {
    font-size: 14px;
}

/* Mobile responsive for vet report modal */
@media (max-width: 768px) {
    .vet-report-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .visit-info-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .vet-report-details {
        padding: 15px;
    }
    
    .info-card .card-content {
        padding: 15px;
    }
    
    .info-card .card-header {
        padding: 12px 15px;
    }
    
    .info-card .card-header h4 {
        font-size: 14px;
    }
}

/* Dashboard */
.section {
    padding: 8px 5px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;
}



.user-info {
    color: #64748b;
    font-size: 18px;
}







.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 24px;
    color: #6366f1;
}

.card-content h3 {
    font-size: 28px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 5px;
}

.card-content p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}

.card-preview {
    margin-top: 8px;
    font-size: 11px;
    color: #9ca3af;
    max-height: 50px;
    overflow: hidden;
    line-height: 1.3;
}


.pet-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #6b7280;
}

.preview-item {
    padding: 2px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.preview-date {
    font-size: 9px;
    color: #d1d5db;
}

.alert-preview-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.alert-severity {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.alert-severity.critical {
    background: #ef4444;
}

.alert-severity.urgent {
    background: #f59e0b;
}

.alert-severity.upcoming {
    background: #3b82f6;
}

.quick-actions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.quick-actions h2 {
    margin-bottom: 20px;
    color: #1e293b;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.action-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 28px;
    color: #1e293b;
}

/* Pets Grid - Mobile Only */
.pets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Pet Card Enhancements */
.pet-basic-info {
    margin-bottom: 15px;
}

.pet-basic-info p {
    margin: 5px 0;
    font-size: 14px;
}

.age-classification {
    display: inline-block;
    background: #e0e7ff;
    color: #6366f1;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Health Bar */
.health-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.health-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.health-value {
    font-weight: 600;
    color: #1f2937;
}

.health-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Pet Profile Full Page */
.pet-profile-content {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-top: 5px;
}

.btn-back {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #e9ecef;
    color: #495057;
}

.pet-profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.pet-profile-actions .btn {
    min-width: 150px;
}

/* Pet Edit Button */
.pet-edit-button-section {
    text-align: center;
    margin-bottom: 4px;
}

.edit-pet-btn {
    background: #008FE4;
    background: linear-gradient(135deg, #008FE4 0%, #76B9E1 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.edit-pet-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 143, 228, 0.3);
}

.edit-pet-btn i {
    font-size: 14px;
}

/* Pet Share Button */
.pet-share-button-section {
    text-align: center;
    margin-bottom: 4px;
}

.share-pet-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-pet-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.share-pet-btn i {
    font-size: 14px;
}

/* Pet Profile Actions Row - Edit + Share in same row */
.pet-profile-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* Small icon-only share button */
.btn-icon-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #0077B6;
    background: white;
    color: #0077B6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    flex-shrink: 0;
}

.btn-icon-share:hover {
    background: #0077B6;
    color: white;
    transform: scale(1.05);
}

/* Pet Switcher Lineup for Pet Profile */
.pet-switcher-lineup {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 12px 0 16px 0;
    margin-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pet-switcher-lineup::-webkit-scrollbar {
    display: none;
}

.pet-switcher-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    min-width: 60px;
}

.pet-switcher-item:hover {
    transform: translateY(-2px);
}

.pet-switcher-item.active .pet-switcher-image {
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}

.pet-switcher-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.pet-switcher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-switcher-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 18px;
}

.pet-switcher-name {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
    text-align: center;
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-switcher-item.active .pet-switcher-name {
    color: #0077B6;
    font-weight: 600;
}

/* Pet Name Display */
.pet-name-display {
    text-align: center;
    margin: 0;
}

.pet-name-display h2 {
    color: #1f2937;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.pet-summary {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    margin: 8px 0 0 0;
}

.pet-info-summary {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    margin: 8px 0 12px 0;
}

.quick-info-item {
    padding: 12px 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.quick-info-item:last-child {
    border-bottom: none;
}

.quick-info-item strong {
    color: #1f2937;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.quick-info-display {
    padding: 16px 20px;
}

/* Pet ID & Vitals Card */
.pet-vitals-display {
    padding: 16px 20px;
}

.pet-vitals-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.pet-vitals-item:last-child {
    border-bottom: none;
}

.pet-vitals-item .vitals-label {
    color: #6b7280;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-vitals-item .vitals-label i {
    color: #9ca3af;
    width: 16px;
}

.pet-vitals-item .vitals-value {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

.pet-vitals-weight .vitals-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weight-trend {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.weight-trend.trend-up {
    color: #dc2626;
    background-color: #fee2e2;
}

.weight-trend.trend-down {
    color: #16a34a;
    background-color: #dcfce7;
}

.weight-trend.trend-stable {
    color: #6b7280;
    background-color: #f3f4f6;
}

/* BCS Visual Container */
.bcs-visual-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bcs-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bcs-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Pet Vitals Note */
.pet-vitals-note {
    padding: 12px 20px;
    background-color: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-vitals-note i {
    color: #9ca3af;
}

/* BCS Editing Interface (Medical Information) */
.bcs-display-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}

.bcs-visual-large {
    flex-shrink: 0;
}

.bcs-info {
    flex-grow: 1;
}

.bcs-description {
    font-size: 16px;
    color: #374151;
    margin-bottom: 12px;
}

.bcs-scale-reference {
    margin-top: 8px;
}

.bcs-scale {
    display: flex;
    gap: 8px;
}

.bcs-scale-item {
    padding: 6px 12px;
    border: 2px solid;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

.bcs-scale-item.active {
    font-weight: 600;
    background-color: rgba(0,0,0,0.05);
}

.bcs-edit-container {
    padding: 16px 0;
}

.bcs-edit-instruction {
    color: #6b7280;
    margin-bottom: 16px;
}

.bcs-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bcs-score-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.bcs-score-btn.underweight {
    border-color: #f59e0b;
    color: #f59e0b;
}

.bcs-score-btn.ideal {
    border-color: #10b981;
    color: #10b981;
}

.bcs-score-btn.overweight {
    border-color: #ef4444;
    color: #ef4444;
}

.bcs-score-btn.selected {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bcs-score-btn.underweight.selected {
    background-color: #fef3c7;
}

.bcs-score-btn.ideal.selected {
    background-color: #d1fae5;
}

.bcs-score-btn.overweight.selected {
    background-color: #fee2e2;
}

.bcs-preview {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.bcs-category-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.bcs-cat.underweight { color: #f59e0b; }
.bcs-cat.ideal { color: #10b981; }
.bcs-cat.overweight { color: #ef4444; }

/* Weight Section Subsections */
.weight-subsection,
.bcs-subsection {
    padding: 16px 0;
}

.weight-subsection {
    padding-top: 0;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.subsection-title i {
    color: #6b7280;
    font-size: 14px;
}

.subsection-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 8px 0;
}

/* Weight History Section (Medical Information) */
.weight-history-container {
    padding: 16px 0;
}

.weight-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.weight-label {
    font-size: 14px;
    color: #6b7280;
}

.weight-value {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.weight-chart-container {
    padding: 16px 0;
}

.weight-sparkline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.weight-sparkline svg {
    max-width: 100%;
}

.sparkline-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 280px;
    margin-top: 8px;
    font-size: 11px;
    color: #9ca3af;
}

.weight-entries-list {
    margin-top: 16px;
}

.weight-entries-header {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.weight-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.weight-entry:last-child {
    border-bottom: none;
}

.weight-entry-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weight-entry-value {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

.weight-entry-date {
    font-size: 13px;
    color: #6b7280;
}

.weight-entry-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.weight-entry-actions .btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.weight-entry-actions .btn-icon:hover {
    background: #f3f4f6;
}

.weight-entry-actions .weight-edit:hover {
    color: #0077B6;
}

.weight-entry-actions .weight-delete:hover {
    color: #ef4444;
}

/* Weight Entries Expandable Container */
.weight-entries-container {
    transition: max-height 0.3s ease;
}

.weight-entries-container.collapsed {
    overflow: hidden;
}

.weight-entries-toggle,
.weight-entries-load-more,
.weight-entries-collapse {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0077B6;
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.weight-entries-toggle:hover,
.weight-entries-load-more:hover,
.weight-entries-collapse:hover {
    color: #005a8a;
}

.weight-entries-toggle i,
.weight-entries-load-more i,
.weight-entries-collapse i {
    font-size: 11px;
}

.weight-entries-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

/* Weight Graph Modal */
.weight-graph-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.weight-graph-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.weight-graph-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.weight-graph-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.weight-graph-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.weight-graph-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.weight-graph-large {
    width: 100%;
    padding: 20px 0;
}

.weight-graph-large svg {
    width: 100%;
    height: auto;
}

.weight-graph-tooltip {
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1001;
    transform: translate(-50%, -100%);
    margin-top: -10px;
}

.weight-graph-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.sparkline-container {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.sparkline-container:hover {
    opacity: 0.8;
}

/* Weight Edit/Delete Modal Styles */
.weight-edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.weight-edit-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
}

.weight-edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.weight-edit-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.weight-edit-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #6b7280;
    transition: all 0.2s ease;
}

.weight-edit-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.weight-edit-modal-body {
    padding: 20px;
}

.weight-edit-modal-body .form-group {
    margin-bottom: 0;
}

.weight-edit-modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.weight-edit-modal-body .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.weight-edit-modal-body .form-control:focus {
    outline: none;
    border-color: var(--primary-color, #0077B6);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.weight-edit-modal-body p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.weight-edit-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.weight-edit-modal-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weight-edit-modal-footer .btn-secondary {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
}

.weight-edit-modal-footer .btn-secondary:hover {
    background: #e5e7eb;
}

.weight-edit-modal-footer .btn-danger {
    background: #ef4444;
    border: none;
    color: white;
}

.weight-edit-modal-footer .btn-danger:hover {
    background: #dc2626;
}

.weight-delete-modal .weight-edit-modal-header {
    border-bottom-color: #fecaca;
}

.weight-delete-modal .weight-edit-modal-header h3 {
    color: #dc2626;
}

.loading-text {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
}

/* Pet Navigation Buttons */
.pet-navigation-buttons {
    margin-top: 20px;
}

.pet-nav-btn {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pet-nav-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

.pet-nav-btn i {
    margin-right: 12px;
    width: 20px;
    color: #6b7280;
}

/* Pet Details Card */
.pet-details-card {
    background: #C4E7DA;
    padding: 10px;
    border-radius: 30px;
    margin-bottom: 20px;
}



.inline-details {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-black);
    line-height: 1.6;
    margin-bottom: 20px;
}

.health-details {
    margin-top: 15px;
}

.health-item {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-black);
}

.health-item strong {
    color: var(--text-black);
}

.no-health-data {
    color: #9ca3af;
    font-style: italic;
    font-size: 14px;
}

.vaccination-up-to-date {
    color: #10b981 !important;
    font-weight: 600;
}

.vaccination-overdue {
    color: #ef4444 !important;
    font-weight: 600;
}

.vaccination-due-soon {
    color: #f59e0b !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pet-profile-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pet-profile-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .pet-details-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .pet-name-display h2 {
        font-size: 24px;
    }
    
    .pet-nav-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .edit-pet-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    

    
    .inline-details {
        font-size: 14px;
    }
    
    .health-item {
        font-size: 13px;
    }
    
    /* Pet ID & Vitals Card - Mobile */
    .pet-id-vitals-content {
        padding: 12px;
    }
    
    .pet-vitals-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pet-vitals-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
    }
    
    .pet-vitals-item .vitals-label {
        font-size: 13px;
    }
    
    .pet-vitals-item .vitals-value {
        font-size: 15px;
    }
    
    .weight-trend {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    /* BCS Display - Mobile */
    .bcs-display-container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .bcs-visual-large {
        order: -1;
    }
    
    .bcs-info {
        text-align: center;
        width: 100%;
    }
    
    .bcs-description {
        font-size: 14px;
    }
    
    .bcs-scale {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .bcs-scale-item {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* BCS Editing - Mobile */
    .bcs-edit-instruction {
        font-size: 13px;
        text-align: center;
    }
    
    .bcs-selector {
        justify-content: center;
    }
    
    .bcs-score-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .bcs-category-labels {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    /* Weight History - Mobile */
    .weight-current {
        padding: 10px 12px;
    }
    
    .weight-label {
        font-size: 13px;
    }
    
    .weight-value {
        font-size: 18px;
    }
    
    .weight-sparkline {
        padding: 12px;
    }
    
    .weight-sparkline svg {
        max-width: 100%;
        height: auto;
    }
    
    .weight-entry {
        padding: 8px 0;
    }
    
    .weight-entry-value {
        font-size: 14px;
    }
    
    .weight-entry-date {
        font-size: 12px;
    }
}

/* Pet Details Modal */
.pet-details-modal {
    max-width: 900px;
    width: 90%;
    overflow-x: hidden;
}

.pet-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 8px;
    overflow-x: hidden;
}

.pet-photo-section {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 8px;
}

.pet-detail-photo-circular {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    border: 4px solid #e5e7eb;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center center;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    overflow: hidden;
}

.pet-detail-photo-circular.placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 48px;
    margin: 0 auto;
    border-radius: 50% !important;
    overflow: hidden;
}

/* Clickable Pet Photo - Navigate back to pet main page */
.pet-photo-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pet-photo-clickable:hover {
    transform: scale(1.03);
}

.pet-photo-clickable:hover .pet-detail-photo-circular {
    border-color: #0077B6;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}

.pet-photo-clickable:active {
    transform: scale(0.98);
}

/* Editable Pet Photo - Update photo on click */
.pet-photo-section.editable {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.pet-photo-section.editable:hover .pet-detail-photo-circular {
    border-color: #0077B6;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}

.pet-photo-section.editable:hover .photo-edit-overlay {
    opacity: 1;
}

.photo-edit-overlay {
    position: absolute;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    margin-right: -80px;
    width: 40px;
    height: 40px;
    background: #0077B6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.pet-photo-section.editable:active .photo-edit-overlay {
    transform: translateX(50%) scale(0.95);
}

.pet-info-section,
.health-info-section,
.medical-summary-section,
.upcoming-care-section,
.weight-section {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.pet-info-section h3,
.health-info-section h3,
.medical-summary-section h3 {
    margin-bottom: 15px;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 500;
    color: #6b7280;
}

.info-item span {
    color: #1f2937;
    font-weight: 500;
}

.health-score-display {
    margin-bottom: 20px;
}

.health-bar.large {
    height: 12px;
}

.health-detail {
    margin-bottom: 15px;
}

.health-detail label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.health-detail p {
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}



.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vaccination Alerts Section */
.vaccination-alerts-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.vaccination-alerts-section h2 {
    margin: 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
}

.vaccination-alerts-section h2 i {
    color: #dc2626;
    margin-right: 10px;
}

.collapse-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collapse-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alert-category {
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-category.critical {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.alert-category.urgent {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.alert-category.upcoming {
    background: #dbeafe;
    border-left-color: #3b82f6;
}

.alert-category.missing {
    background: #f3f4f6;
    border-left-color: #6b7280;
}

.alert-category h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-category.critical h3 {
    color: #dc2626;
}

.alert-category.urgent h3 {
    color: #f59e0b;
}

.alert-category.upcoming h3 {
    color: #3b82f6;
}

.alert-category.missing h3 {
    color: #6b7280;
}

.alert-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.alert-item:last-child {
    margin-bottom: 0;
}

.alert-info {
    flex: 1;
}

.alert-pet-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.alert-vaccine {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 2px;
}

.alert-status {
    font-size: 12px;
    color: #6b7280;
}

.alerts-card {
    position: relative;
}

.alerts-card.has-alerts .card-icon {
    background: #fef2f2;
}

.alerts-card.has-alerts .card-icon i {
    color: #dc2626;
}

.alert-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Upcoming Care Section */
.upcoming-care-section h3,
.weight-section h3 {
    margin-bottom: 15px;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #10b981;
}

.upcoming-item.empty {
    border-left-color: #d1d5db;
    opacity: 0.7;
}

.upcoming-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0369a1;
    font-size: 18px;
}

.upcoming-icon.vaccination {
    background: #fef3c7;
    color: #d97706;
}

.upcoming-details h4 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.upcoming-date {
    color: #059669;
    font-weight: 600;
    margin: 0;
}

.clinic-name, .vet-name {
    color: #6b7280;
    font-size: 14px;
    margin: 2px 0;
}

/* Weight & Body Condition Section */
.weight-display {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.weight-value {
    text-align: center;
}

.weight-number {
    font-size: 36px;
    font-weight: bold;
    color: #1f2937;
}

.weight-unit {
    font-size: 18px;
    color: #6b7280;
    margin-left: 5px;
}

.weight-indicator {
    flex: 1;
    text-align: center;
}

.weight-meter {
    position: relative;
    width: 120px;
    height: 60px;
    margin: 0 auto 10px;
    background: linear-gradient(to right, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    border-radius: 60px 60px 0 0;
    overflow: hidden;
}

.weight-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 50px;
    background: #1f2937;
    transform-origin: bottom;
    transition: transform 0.5s ease;
}

.weight-needle::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.weight-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 10px;
    color: #6b7280;
}

.weight-status {
    font-weight: 600;
    font-size: 16px;
    margin: 5px 0;
}

/* Body Silhouettes */
.body-type-display {
    margin-top: 20px;
}

.body-type-display label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.body-silhouettes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
}

.body-silhouette {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.body-silhouette.active {
    background: #e0e7ff;
    border: 2px solid #6366f1;
}

.body-silhouette span {
    display: block;
    font-size: 10px;
    margin-top: 5px;
    color: #6b7280;
}

.silhouette-shape {
    width: 30px;
    height: 40px;
    margin: 0 auto;
    border: 2px solid #6b7280;
    border-radius: 15px 15px 10px 10px;
    position: relative;
}

.silhouette-shape.underweight {
    width: 20px;
    border-color: #ef4444;
}

.silhouette-shape.ideal {
    border-color: #10b981;
}

.silhouette-shape.slightly_overweight {
    width: 35px;
    border-color: #f59e0b;
}

.silhouette-shape.overweight {
    width: 40px;
    border-color: #f59e0b;
}

.silhouette-shape.obese {
    width: 45px;
    border-color: #ef4444;
}

/* Clickable Medical Records */




/* New Dashboard Layout */
.pets-thumbnails-section {
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 12px;
    position: relative;
}

/* Removed gradient overlay that was hiding scrollbar */

.pets-thumbnails-section h2 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.pets-horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 10px 0 18px 0;
    scrollbar-width: thin;
    scrollbar-color: #76B9E1 #f1f5f9;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
}

.pets-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
}

.pets-horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.1);
}

.pets-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #76B9E1;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.1);
    min-width: 20px;
}

.pets-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #5a9bd4;
}

/* Force scrollbar visibility on mobile devices */
@media (max-width: 768px) {
    .pets-horizontal-scroll {
        overflow-x: scroll; /* Force scroll instead of auto */
        padding-bottom: 20px; /* More space for mobile scrollbar */
    }
    
    .pets-horizontal-scroll::-webkit-scrollbar {
        height: 10px; /* Slightly thicker on mobile */
        background: #f1f5f9;
        -webkit-appearance: none;
    }
    
    .pets-horizontal-scroll::-webkit-scrollbar-thumb {
        background: #76B9E1;
        border-radius: 5px;
        min-width: 30px; /* Larger minimum size for touch */
        -webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
    }
}

.pet-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    text-align: center !important;
    touch-action: manipulation;
}

/* Cleaned up - using specific container class now */

/* FIXED: Pet thumbnail images - force circular shape */
.pet-thumbnail-image-container {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    margin-bottom: 8px !important;
    cursor: pointer !important;
    position: relative !important;
    background: #f3f4f6 !important;
    box-sizing: border-box !important;
}

.pet-thumbnail-image-container img,
.pet-thumbnail-image-container .pet-thumbnail-photo,
.pet-thumbnail-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
}

/* FIXED: Reminder pet images - prevent oval distortion */
.overview-item .pet-avatar,
.overview-item .pet-photo,
.item-pet img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
}

.pet-thumbnail:hover {
    transform: translateY(-2px);
}

/* Removed conflicting old styles */

.pet-thumbnail:hover img,
.pet-thumbnail:hover .pet-thumbnail-photo,
.pet-thumbnail:hover .pet-thumbnail-image-container {
    border-color: #6366f1 !important;
}

.pet-thumbnail-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 24px;
    overflow: hidden;
}

.pet-thumbnail-name {
    font-size: 15px;
    font-weight: 600 !important;
    color: #1e293b;
    text-align: center !important;
    max-width: 80px;
    word-wrap: break-word;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 2px;
    line-height: 1.2;
    width: 100% !important;
    display: block !important;
}

.pet-thumbnail-info {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
    max-width: 80px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.add-pet-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
    margin: 0;
}

.add-pet-thumbnail:hover {
    transform: translateY(-2px);
}

.add-pet-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #008FE4 0%, #76B9E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.add-pet-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.default-pet-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #008FE4 0%, #76B9E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.default-pet-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Pet Photo Placeholder for Onboarding and Add Pet Modals */
.pet-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, #008FE4 0%, #76B9E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 50px;
    transition: all 0.2s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.pet-photo-placeholder i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.add-pet-thumbnail:hover .add-pet-icon {
    background: radial-gradient(circle at center, #007ACC 0%, #6BA8D4 100%);
    transform: scale(1.05);
}

.add-pet-text {
    font-size: 12px;
    font-weight: 500;
    color: #008FE4;
    text-align: center;
}

.todays-overview-section,
.notifications-insights-section {
    margin-bottom: 30px;
    padding: 5px;
    border-radius: 12px;
}

.todays-overview-section h2,
.notifications-insights-section h2 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-items,
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Completed reminders - subtle opacity instead of strikethrough */
.overview-item.reminder-completed .item-title {
    opacity: 0.7;
}

/* Universal Pet Image Styling - DISABLED to fix conflicts */

/* Pet Cards in main pets grid */
.pet-card .pet-photo-container {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto 16px auto !important;
    border: none !important;
    aspect-ratio: 1 / 1 !important;
    position: relative !important;
}

.pet-card .pet-photo {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
}

/* Pet Detail Modal Photo */
.pet-detail-photo-circular {
    width: 150px !important;
    height: 150px !important;
    border: 4px solid #e5e7eb !important;
}

/* Pet Selection Cards */
.pet-selection-card {
    border-radius: 12px !important; /* Keep card rectangular */
}

.pet-selection-card img {
    width: 80px !important;
    height: 80px !important;
    border: 2px solid #e5e7eb !important;
}

/* Pet thumbnail styling for overview and reminders */
.item-pet {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.item-pet img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border: 2px solid #e5e7eb !important;
}

.item-pet .pet-thumbnail-placeholder {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    border: 2px solid #e5e7eb !important;
}

.item-pet .pet-thumbnail-placeholder i {
    font-size: 14px;
}

.item-pet .pet-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Reminder pet styling - simplified without thumbnails */
.reminder-card .reminder-meta .reminder-pet {
    display: flex;
    align-items: center;
}

.reminder-card .reminder-meta .reminder-pet .pet-name {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

/* Overview Item Accordion Styles */
.overview-item {
    background: #ffffff;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    padding: 2px 5px 2px 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.overview-item:hover {
    background: #ffffff;
    transform: translateX(2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Completing state - immediate visual feedback */
.overview-item.completing {
    background: #f0fdf4;
    border: 2px solid #22c55e;
}

.overview-item.completing .item-icon {
    animation: checkPulse 0.5s ease-in-out;
}

@keyframes checkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.overview-item .item-collapsed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    box-sizing: border-box;
    background-color: #ffffff;
    min-height: 60px;
    width: 100%;
    overflow: hidden;
}

.overview-item .item-expanded {
    padding: 0;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: #ffffff;
}

.overview-item.expanded .item-expanded {
    max-height: 200px;
    opacity: 1;
    padding: 15px;
}

.overview-item.expanded .item-collapsed {
    background-color: #ffffff;
}

/* Ensure proper flex arrangement for overview items */
.overview-item .item-icon {
    flex-shrink: 0;
    order: 1;
    width: 5%;
}


.overview-item .item-pet {
    flex-shrink: 0;
    order: 2;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    align-self: center !important;
    vertical-align: middle !important;
}

.overview-item .item-pet .pet-name,
.overview-item .item-pet span {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 4px 10px !important;
}

.overview-item .item-content {
    flex: 1;
    order: 3;
    width: 55%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.overview-item .item-time {
    flex-shrink: 0;
    order: 4;
    white-space: normal;
    word-wrap: break-word;
    width: 28%;
    max-width: none;
    text-align: right;
    font-size: 11px;
    line-height: 1.4;
    padding-right: 8px;
    box-sizing: border-box;
    overflow: visible;
    font-weight: 500;
    color: #64748b;
}

.overview-item .item-time .reminder-completed {
    width: 40%;
}

.overview-item .item-actions {
    flex-shrink: 0;
    order: 5;
    width: 5%;
    box-sizing: border-box;
}

/* Notification items - keep original styling */
.notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

/* Insight items with milestone functionality */
.insight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.insight-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.insight-item.milestone {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.insight-item.milestone:hover {
    background: #dcfce7;
}

/* Milestone Modal Styling */
.milestone-modal {
    max-width: 600px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.milestone-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue-chien) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.milestone-modal .modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.milestone-modal .modal-header i {
    font-size: 24px;
}

.milestone-modal .close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    position: absolute;
    top: 20px;
    right: 20px;
}

.milestone-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.milestone-modal .modal-body {
    padding: 20px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--primary-blue);
    border-bottom: none;
}

.milestone-modal .pet-info-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.milestone-card {
    background: var(--beige);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.milestone-card .card-header {
    color: var(--text-dark-blue);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.milestone-card .card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.milestone-card .card-header i {
    font-size: 18px;
}

.milestone-card .card-content {
    padding: 20px;
    background: var(--beige);
}

.milestone-card .card-content p {
    margin: 0;
    line-height: 1.6;
    color: #374151;
    font-size: 15px;
}

/* Milestone description card with image on the right */
.milestone-card.milestone-description-card .card-content {
    position: relative;
}

.milestone-card.milestone-description-card .card-content img {
    float: right;
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 0 5px 5px;
    border: none;
    transition: all 0.2s ease;
}


/* Milestone advice card with image on the right */
.milestone-card.milestone-advice-card .card-content {
    position: relative;      /* optional: clips content to the circle */
}

.milestone-card.milestone-advice-card .card-content img {
    float: left;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 5px 0 0;
    transition: all 0.2s ease;
}


.milestone-time-card .card-header {
    background: #3b82f6;
}

.milestone-modal .modal-footer {
    padding: 15px 25px;
    display: flex;
    justify-content: center;
    background-color: var(--primary-blue);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.milestone-modal .btn-primary {
    background-color: var(--text-black);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .milestone-modal {
        width: 95%;
        margin: 20px auto;
    }
    
    .milestone-modal .modal-header {
        padding: 15px;
    }
    
    .milestone-modal .modal-header h2 {
        font-size: 18px;
    }
    
    .milestone-card .card-header {
        padding: 12px 15px;
    }
    
    .milestone-card .card-content {
        padding: 5px;
    }
}

.item-icon {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000000;
}

/* Specific styling for different overview item types */
.item-icon.appointment {
    color: var(--text-black);
}

.item-icon.reminder {
    color: var(--text-black);
}

.item-icon.reminder-overdue {
    color: var(--text-black);
}

.item-icon.reminder-completed {
    color: var(--text-black);
}

.item-icon.alert {
    color: var(--text-black);
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}

.item-description {
    font-size: 13px;
    color: #000000;
    line-height: 1.4;
}

.item-time {
    font-size: 12px;
    color: #000000;
    font-weight: normal;
    padding: 0 15px 0 0; 
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-complete-small {
    background: #5e5e5e;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-complete-small:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-complete-small:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}

.btn-complete-small i {
    font-size: 10px;
}

.promoted-services-section {
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.promoted-services-section h2 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.promoted-services-section h2.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.promoted-services-section h2.collapsible-header:hover {
    color: #0077B6;
}

.promoted-services-section h2 .toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
    color: #6b7280;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 114, 128, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.coming-soon-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 24px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.coming-soon-badge i {
    font-size: 32px;
    color: #6366f1;
}

.coming-soon-badge span {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.coming-soon-badge .coming-soon-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
    font-style: italic;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.service-content p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.btn-outline {
    background: transparent;
    border: 1px solid #6366f1;
    color: #6366f1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ChatGPT's Complete Fix - Style ALL Pet Thumbnail Classes Consistently */

/* Container styling for both sizes */
.pet-thumbnail-image-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
}

.pet-thumbnail-container {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
}

/* 32px containers for reminders/overview */
.pet-thumbnail-container {
    width: 32px !important;
    height: 32px !important;
    border: 2px solid #e5e7eb !important;
    flex-shrink: 0 !important;
}
}

/* ALL pet thumbnail images - regardless of class name */
.pet-thumbnail-photo,
.pet-thumbnail,
.pet-thumbnail-image-container img,
.pet-thumbnail-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #6b7280;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
}

/* Usage Limit Modal */
.usage-limit-modal {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.usage-limit-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.usage-limit-header .warning-icon {
    font-size: 2rem;
    color: #f59e0b;
    margin-right: 1rem;
}

.usage-limit-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.usage-limit-body {
    margin-bottom: 2rem;
}

.limit-message {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: center;
}

.current-plan-info {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.current-plan-info h4 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.2rem;
}

.plan-limits {
    display: grid;
    gap: 0.75rem;
}

.limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.limit-item.at-limit {
    border-color: #f59e0b;
    background: #fef3c7;
}

.limit-item .feature-name {
    font-weight: 500;
    color: #374151;
}

.limit-item .usage-count {
    font-weight: 600;
    color: #6b7280;
}

.limit-item.at-limit .usage-count {
    color: #d97706;
}

.upgrade-section h4 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.2rem;
}

.plan-comparison {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.plan-card {
    flex: 1;
    max-width: 300px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.plan-header h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #1f2937;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.plan-features {
    text-align: left;
    margin-bottom: 1.5rem;
}

.plan-features .feature {
    padding: 0.25rem 0;
    color: #374151;
    font-size: 0.9rem;
}

.upgrade-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.upgrade-btn:hover {
    background: #2563eb;
}

.alternative-options {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.reset-info {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.reset-info i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    text-align: center;
}

.btn.secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn.secondary:hover {
    background: #4b5563;
}

/* Responsive design for usage limit modal */
@media (max-width: 768px) {
    .usage-limit-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .usage-limit-header {
        flex-direction: column;
        text-align: center;
    }
    
    .usage-limit-header .warning-icon {
        margin: 0 0 0.5rem 0;
    }
    
    .plan-comparison {
        flex-direction: column;
    }
    
    .plan-card {
        max-width: none;
    }
}

/* Breed Input Container for Onboarding Step 2 */
.breed-input-container {
    position: relative;
}

.breed-input-container select,
.breed-input-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.breed-input-container select:focus,
.breed-input-container input:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

/* Searchable dropdown styling */
.breed-dropdown-container {
    position: relative;
    display: block !important;
    visibility: visible !important;
}

.breed-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.breed-dropdown-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.breed-dropdown-item:hover,
.breed-dropdown-item.highlighted {
    background-color: #f8fafc;
}

.breed-dropdown-item:last-child {
    border-bottom: none;
}

.breed-dropdown-item.other-option {
    font-style: italic;
    color: #6b7280;
    border-top: 1px solid #d1d5db;
}

/* Shake animation for validation errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Premium Feature Modal */
.premium-feature-modal {
    z-index: 1000;
}

.premium-modal-content {
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.premium-feature-modal .modal-header {
    display: flex;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.premium-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #fbbf24;
}

.premium-feature-modal .modal-header h3 {
    margin: 0;
    flex: 1;
    font-size: 1.5rem;
    font-weight: 600;
}

.premium-feature-modal .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.premium-feature-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.premium-message {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.feature-restriction-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.plan-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-plan-card,
.recommended-plan-card,
.premium-plan-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f9fafb;
}

.recommended-plan-card {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
}

.premium-plan-card {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    position: relative;
}

.recommended-plan-card::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -10px;
    right: 1rem;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.premium-plan-card::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -10px;
    right: 1rem;
    background: #7c3aed;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-badge.current {
    background: #f3f4f6;
    color: #6b7280;
}

.plan-badge.recommended {
    background: #3b82f6;
    color: white;
}

.plan-badge.premium {
    background: #7c3aed;
    color: white;
}

.plan-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.plan-features {
    margin-top: 1rem;
}

.plan-features .feature {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e5e7eb;
}

.plan-features .feature:last-child {
    border-bottom: none;
}

.feature.available {
    color: #059669;
}

.feature.limited {
    color: #6b7280;
}

.upgrade-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.premium-upgrade {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.premium-upgrade:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

.alternative-info {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.info-text {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-text i {
    color: #3b82f6;
}

/* Responsive design for premium feature modal */
@media (max-width: 768px) {
    .premium-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .premium-feature-modal .modal-header {
        padding: 1.5rem 1rem 1rem 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .premium-icon {
        margin: 0 0 0.5rem 0;
    }
    
    .plan-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .recommended-plan-card::before,
    .premium-plan-card::before {
        top: -8px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .premium-feature-modal .modal-body {
        padding: 1.5rem 1rem;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .plan-comparison {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .premium-plan-card {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
}

/* Body Condition Gauge in Details View */
.body-condition-display {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.body-condition-display label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    display: block;
}

.body-condition-meter {
    display: flex;
    align-items: center;
    gap: 20px;
}

.condition-gauge {
    position: relative;
    width: 140px;
    height: 70px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 25%, #10b981 50%, #f59e0b 75%, #dc2626 100%);
    border-radius: 70px 70px 0 0;
    overflow: hidden;
}

.condition-gauge::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 0;
    background: #f8fafc;
    border-radius: 55px 55px 0 0;
}

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 50px;
    background: #1f2937;
    transform-origin: bottom center;
    z-index: 15;
    border-radius: 2px;
    margin-left: -1.5px;
}

.gauge-needle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -4px;
    width: 11px;
    height: 11px;
    background: #1f2937;
    border-radius: 50%;
}

.gauge-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 10;
    pointer-events: none;
}

.gauge-label {
    position: absolute;
    font-size: 9px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.gauge-label.underweight {
    top: 25px;
    left: 8px;
}

.gauge-label.ideal {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.gauge-label.overweight {
    top: 25px;
    right: 8px;
}

.gauge-label.obese {
    top: 35px;
    right: 15px;
}

.condition-status {
    flex: 1;
    text-align: left;
}

.status-text {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.condition-description {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Reminder Cards Styling */
.reminders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.reminders-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

.reminder-section {
    margin-bottom: 32px;
}

.reminder-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.reminder-section.overdue h3 {
    color: #dc2626;
}

.reminder-section.upcoming h3 {
    color: #2563eb;
}

.reminder-section.completed h3 {
    color: #059669;
}

.reminder-list {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.reminder-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    overflow: hidden;
}

/* Series Card Styles for Grouped View */
.series-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-bottom: 16px;
    overflow: hidden;
}

.series-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.series-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

/* Card Type Indicator Badges */
.series-type-indicator,
.reminder-type-indicator {
    margin-bottom: 12px;
}

.card-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.series-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.reminder-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 87, 108, 0.3);
}

.card-type-badge i {
    font-size: 12px;
}

/* Completion feedback styling */
.completion-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    border-radius: 8px;
    border: 1px solid #10b981;
    animation: completionPulse 0.5s ease-in-out;
}

@keyframes completionPulse {
    0% { 
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.02);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.series-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.series-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.expand-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #6b7280;
}

.expand-toggle:hover {
    background: #f3f4f6;
    color: #374151;
}

.series-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.repeat-info {
    background: #f0f9ff;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.series-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
}

.stat i {
    font-size: 12px;
}

.stat.overdue {
    color: #dc2626;
}

.next-due {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-complete {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.series-content {
    transition: all 0.3s ease;
}

.series-content.collapsed {
    max-height: 0;
    overflow: hidden;
}

.series-content.expanded {
    max-height: none;
    border-top: 1px solid #f3f4f6;
}

.loading-occurrences {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.no-occurrences, .error-occurrences {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.error-occurrences {
    color: #dc2626;
}

.occurrences-list {
    padding: 16px;
}

.occurrence-category {
    margin: 0 0 12px 0;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f3f4f6;
}

.occurrence-category.overdue {
    color: #dc2626;
}

.occurrence-category.upcoming {
    color: #2563eb;
}

.occurrence-category.completed {
    color: #059669;
}

.more-completed {
    padding: 12px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
    font-size: 14px;
}

/* View Toggle Styles */
.view-toggle-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.view-toggle input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.toggle-label {
    cursor: pointer;
    user-select: none;
}

/* Series Grid */
.series-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Status badges for series */
.status-badge.due-today {
    background: #fbbf24;
    color: #92400e;
}

.reminder-card .reminder-header,
.reminder-card .reminder-body,
.reminder-card .reminder-actions {
    padding: 5px;
}

.reminder-card .reminder-header {
    padding-top: 12px;
}

.reminder-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.reminder-card.overdue {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
}

.reminder-card.upcoming {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
}

.reminder-card.completed {
    border-left: 4px solid #059669;
    background: #f0fdf4;
    opacity: 0.8;
}

.reminder-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.reminder-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.reminder-header .due-date {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reminder-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.overdue {
    background: #fecaca;
    color: #991b1b;
}

.status-badge.upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.completed {
    background: #bbf7d0;
    color: #166534;
}

.reminder-body {
    margin-bottom: 16px;
}

.reminder-description {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.reminder-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.due-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.reminder-pet {
    display: flex;
    align-items: center;
}

.reminder-pet .pet-name {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

/* Reminder Pet Header - New top section with thumbnail */
.reminder-pet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
}

.reminder-pet-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
}

.reminder-pet-header .pet-name {
    font-size: 16px;
    font-weight: bold;
    color: #1e293b;
    margin: 0;
}

.reminder-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reminder-actions .btn-success {
    margin-right: auto;
}

.reminder-actions .btn-outline {
    margin-left: auto;
    margin-right: auto;
}

.reminder-actions .btn-danger {
    margin-left: auto;
}

.reminder-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
}

.reminder-actions .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.body-option span {
    font-size: 10px;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

.body-option.selected span {
    color: #6366f1;
    font-weight: 600;
}

@media (max-width: 768px) {
    .body-condition-selector {
        gap: 5px;
    }
    
    .body-option {
        min-width: 60px;
        padding: 8px;
    }
    
    .body-shape {
        width: 25px;
        height: 35px;
    }
    
    .body-shape.underweight {
        width: 18px;
    }
    
    .body-shape.slightly-overweight {
        width: 28px;
    }
    
    .body-shape.overweight {
        width: 32px;
    }
    
    .body-shape.obese {
        width: 35px;
    }
    
    .pet-details-modal {
        width: 95vw;
        max-width: none;
        margin: 10px auto;
        max-height: none;
        overflow-y: visible;
    }
    
    .pet-details-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        overflow-x: hidden;
    }
    
    .pet-photo-section {
        text-align: center;
        margin-bottom: 2px;
    }
    
    .pet-detail-photo-circular {
        width: 120px;
        height: 120px;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .weight-display {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .weight-meter {
        width: 100px;
        height: 50px;
    }
    
    .body-silhouettes {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .body-silhouette {
        flex: 0 0 auto;
        min-width: 50px;
        padding: 8px;
    }
    
    .silhouette-shape {
        width: 25px;
        height: 35px;
    }
    
    .silhouette-shape.underweight {
        width: 18px;
    }
    
    .silhouette-shape.slightly_overweight {
        width: 28px;
    }
    
    .silhouette-shape.overweight {
        width: 32px;
    }
    
    .silhouette-shape.obese {
        width: 35px;
    }
    
    .upcoming-item {
        padding: 12px;
        font-size: 14px;
    }
    
    .upcoming-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .health-score-display {
        text-align: center;
    }
    
    .pet-info-section,
    .health-info-section,
    .medical-summary-section,
    .upcoming-care-section,
    .weight-section {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .modal-body {
        padding: 15px;
        overflow-x: hidden;
    }
}

.pet-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.pet-card:hover {
    transform: translateY(-2px);
}

.pet-card .pet-photo-container {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 16px auto !important;
    border: none !important;
    aspect-ratio: 1 / 1 !important;
    position: relative !important;
}

.pet-photo {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px !important;
    min-height: 140px !important;
    max-width: 140px !important;
    max-height: 140px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto 16px auto;
    border: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.pet-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1e293b;
    text-align: center;
    font-weight: bold;
}

.pet-info p {
    color: #64748b;
    margin-bottom: 5px;
}

.pet-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    position: relative;
}

.pet-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.pet-actions-dropdown {
    position: relative;
}

.dropdown-toggle {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-toggle:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 140px;
    margin-top: 5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #374151;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item.delete {
    color: #dc2626;
}

.dropdown-item.delete:hover {
    background: #fef2f2;
}

/* Document Form Modal */
.document-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.document-form-container {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 20px;
    border-bottom: 1px solid #eee;
}


.form-header h2 {
    margin: 0;
    color: #2c3e50;
}

.close-form-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-form-btn:hover {
    color: #e74c3c;
}

.form-content {
    padding: 20px;
}

.captured-image-preview {
    margin-bottom: 20px;
    text-align: center;
}

.ai-processing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #3498db;
    font-size: 14px;
    margin-top: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-left-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.document-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.document-form-container {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close-form-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-form-btn:hover {
    color: #333;
}

.form-content {
    padding: 20px;
}

.captured-image-preview {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #000000;
}

.btn-secondary {
    background-color: #5e5e5e;
    color: white;
}

.btn-secondary:hover {
    background-color: #5e5e5e;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-secondary {
    background-color: #5e5e5e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #5e5e5e;
}

.btn-primary {
    background-color: #000000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #000000;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .document-form-modal {
        padding: 10px;
    }
    
    .document-form-container {
        max-height: 95vh;
    }
    
    .form-content {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Modal */
.modal {
    display: none;
    align-items: center;       /* center vertically */
    justify-content: center;   /* center horizontally */
    position: fixed;           /* required to cover screen */
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;             /* <--- this is key! not auto */
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;             /* optional: prevents clipping on small screens */
    box-sizing: border-box;
    overflow-y: auto;          /* allow scrolling if content is taller than screen */
}

.modal-content {
    background-color: white;
    margin: 0; /* <-- remove vertical margin */
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
}

/* Default modals have height limit for safety */
.modal:not(.pet-details-modal) .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Pet details modal can expand fully */
.pet-details-modal .modal-content {
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #1e293b;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #64748b;
}

.close:hover {
    color: #374151;
}

.modal form {
    padding: 30px;
}

/* Pet AI Disclaimer Modal - centered vertically */
#petAIDisclaimerModal {
    align-items: center;
}

.modal-body {
    padding: 20px;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    max-height: none !important;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2500;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 4px solid #6366f1;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Visits Grid */
.visits-grid {
    display: grid;
    gap: 20px;
}

.visit-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Reminders Grid */
.reminders-grid {
    display: grid;
    gap: 15px;
}

.reminder-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #6366f1;
}

.reminder-card.overdue {
    border-left-color: #ef4444;
}

.reminder-card.upcoming {
    border-left-color: #f59e0b;
}

/* Fresh Mobile Navigation System */

/* Desktop Navigation - Always Visible */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav .nav-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.desktop-nav .nav-link:hover {
    background-color: #e2e8f0;
    color: #6366f1;
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #1e293b;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-close {
    display: none;
}

.mobile-nav-close:hover {
    background-color: #f1f5f9;
}

.mobile-nav-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 20px;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #f1f5f9;
    color: #6366f1;
}

.mobile-logout-btn {
    margin-top: 24px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.mobile-logout-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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

/* Responsive Media Queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-nav-overlay {
        display: none;
    }
}

    .nav-toggle {
        display: flex;
    }



    .action-buttons {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .pets-grid {
        grid-template-columns: 1fr;
    }

    .documents-section {
        padding: 0 8px;
    }
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

/* Admin Section Styles */
.admin-header {
    margin-bottom: 2rem;
    text-align: center;
}

.admin-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: #666;
    font-size: 1.1rem;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.admin-actions {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
}

.vaccination-requirements-list h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
}

.requirement-group {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.requirement-group h4 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 0.5rem;
}

.requirement-list {
    display: grid;
    gap: 1rem;
}

.requirement-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #ddd;
}

.requirement-item.mandatory {
    border-left-color: #ef4444;
}

.requirement-item.strongly_recommended {
    border-left-color: #f59e0b;
}

.requirement-item.optional {
    border-left-color: #10b981;
}

.requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.requirement-header h5 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.requirement-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.requirement-level.mandatory {
    background: #fef2f2;
    color: #dc2626;
}

.requirement-level.strongly_recommended {
    background: #fffbeb;
    color: #d97706;
}

.requirement-level.optional {
    background: #f0fdf4;
    color: #059669;
}

.requirement-meta {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

.requirement-meta small {
    color: #666;
    font-size: 0.85rem;
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.requirement-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state p {
    margin-bottom: 0.5rem;
}

/* User Administration Overview Styles */
.user-admin-overview {
    margin-top: 2rem;
}

.user-admin-overview h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* User Management Table Styles */
.user-management-section {
    margin-top: 2rem;
}

.user-management-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.search-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.search-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.users-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.users-table th {
    background: #f8f9fa;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.users-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.users-table tbody tr:hover {
    background-color: #f8f9fa;
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.plan-badge.basic {
    background: #e3f2fd;
    color: #1976d2;
}

.plan-badge.premium {
    background: #f3e5f5;
    color: #7b1fa2;
}

.plan-badge.professional {
    background: #e8f5e8;
    color: #388e3c;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.owner {
    background: #e8f5e8;
    color: #388e3c;
}

.status-badge.co-owner {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.shared {
    background: #e3f2fd;
    color: #1976d2;
}

.users-table .number-cell {
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .users-table {
        font-size: 0.8rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.5rem;
    }
}

.user-stats-grid .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    border-left: 4px solid #4a90e2;
}

.user-stats-grid .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.user-stats-grid .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.admin-info {
    background: #f0f4ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.admin-info p {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 500;
}

.admin-info ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #666;
}

.admin-info ul li {
    margin-bottom: 0.5rem;
}

/* Error Logs and Feedback Styles */
.admin-filters {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.admin-filters select {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
}

.error-stats-grid,
.feedback-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.error-logs-list,
.user-feedback-list {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.error-item,
.feedback-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #e5e7eb;
}

.error-item.unresolved {
    border-left-color: #ef4444;
}

.error-item.resolved {
    border-left-color: #10b981;
}

.feedback-item.new {
    border-left-color: #3b82f6;
}

.feedback-item.reviewed {
    border-left-color: #f59e0b;
}

.feedback-item.resolved {
    border-left-color: #10b981;
}

.error-header,
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.error-title,
.feedback-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.error-meta,
.feedback-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.error-status,
.feedback-status {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.error-status.unresolved {
    background: #fee2e2;
    color: #dc2626;
}

.error-status.resolved {
    background: #d1fae5;
    color: #065f46;
}

.feedback-status.new {
    background: #dbeafe;
    color: #1d4ed8;
}

.feedback-status.reviewed {
    background: #fef3c7;
    color: #92400e;
}

.feedback-status.resolved {
    background: #d1fae5;
    color: #065f46;
}

.error-message,
.feedback-comment {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin: 0.75rem 0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.error-actions,
.feedback-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-resolve,
.btn-review {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-resolve {
    background: #10b981;
    color: white;
}

.btn-resolve:hover {
    background: #059669;
}

.btn-review {
    background: #f59e0b;
    color: white;
}

.btn-review:hover {
    background: #d97706;
}

.confidence-score {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.confidence-low {
    background: #fee2e2;
    color: #dc2626;
}

.confidence-medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-high {
    background: #d1fae5;
    color: #065f46;
}

/* Vaccination Requirement Modal */
#vaccinationRequirementModal .modal-content {
    max-width: 600px;
    width: 90%;
}

#vaccinationRequirementModal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

#vaccinationRequirementModal .form-group {
    margin-bottom: 1rem;
}

#vaccinationRequirementModal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

#vaccinationRequirementModal .form-group input,
#vaccinationRequirementModal .form-group select,
#vaccinationRequirementModal .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#vaccinationRequirementModal .form-group input:focus,
#vaccinationRequirementModal .form-group select:focus,
#vaccinationRequirementModal .form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Bottom Navigation Menu */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-width: 50px;
    height: 50px;
}

.bottom-nav-item:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.bottom-nav-item:active {
    transform: translateY(0);
}

.nav-icon {
    width: 33px;
    height: 33px;
    transition: opacity 0.2s ease;
    opacity: 0.7;
    font-size: 24px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* For image icons */
.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bottom-nav-item:hover .nav-icon {
    opacity: 1;
    color: #4a90e2;
}

.bottom-nav-item.active .nav-icon {
    opacity: 1;
    color: #4a90e2;
}

/* Add padding to main content to prevent overlap with bottom nav */
.main-content {
    padding-bottom: 90px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Hide bottom nav on login/auth pages */
body:has(.auth-section:not([style*="display: none"])) .bottom-nav {
    display: none;
}

/* Symptom Tracker Styles */

/* Event Details Modal */
.event-details-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.event-details-body {
    max-height: 70vh;
    overflow-y: auto;
}

.event-overview-section,
.symptoms-section,
.outcome-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.event-overview-section h3,
.symptoms-section h3,
.outcome-section h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9em;
}

.info-item span {
    color: #495057;
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.closed {
    background: #d4edda;
    color: #155724;
}

.status-badge.active {
    background: #fff3cd;
    color: #856404;
}

.symptom-detail-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.symptom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.symptom-time {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

.severity-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.severity-mild {
    background: #d1ecf1;
    color: #0c5460;
}

.severity-badge.severity-moderate {
    background: #fff3cd;
    color: #856404;
}

.severity-badge.severity-severe {
    background: #f8d7da;
    color: #721c24;
}

.severity-badge.severity-critical {
    background: #d1ecf1;
    color: #721c24;
    background: #f5c6cb;
}

.symptom-description {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.symptom-category {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 10px;
}

.symptom-media {
    margin-top: 10px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.symptom-photo {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease;
}

.symptom-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.symptom-video {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.no-symptoms,
.no-outcome {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.past-event-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.view-event-btn {
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.view-event-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.symptom-tracker-header {
    margin-bottom: 32px;
}

.symptom-tracker-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.symptom-tracker-header .header-text {
    flex: 1;
}

.symptom-tracker-header .header-text h1 {
    margin: 0 0 8px 0;
    color: #1f2937;
}

.symptom-tracker-header .header-text p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.symptom-tracker-header .header-actions {
    flex-shrink: 0;
}

.symptom-tracker-header .header-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.symptom-tracker-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    gap: 16px;
    flex-wrap: wrap;
}

.pet-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-selector label {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.pet-selector select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    min-width: 150px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-controls label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.symptom-entries-list {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
}

.symptom-entry-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    background: white;
    transition: all 0.2s ease;
}

.symptom-entry-card:last-child {
    margin-bottom: 0;
}

.symptom-entry-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.symptom-entry-card.resolved {
    border-left: 4px solid #059669;
    background: #f0fdf4;
    opacity: 0.85;
}

.symptom-entry-card.urgent {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
}

.symptom-entry-card.moderate {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.symptom-entry-card.mild {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.symptom-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.symptom-entry-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.symptom-entry-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.symptom-category-badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.symptom-severity-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.symptom-severity-badge.mild {
    background: #d1fae5;
    color: #065f46;
}

.symptom-severity-badge.moderate {
    background: #fef3c7;
    color: #92400e;
}

.symptom-severity-badge.severe {
    background: #fee2e2;
    color: #991b1b;
}

.symptom-severity-badge.critical {
    background: #fecaca;
    color: #7f1d1d;
}

.symptom-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
}

.symptom-entry-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.symptom-entry-description {
    margin-bottom: 16px;
    line-height: 1.5;
    color: #374151;
}

.symptom-entry-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.symptom-detail-item {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.symptom-detail-item label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

.symptom-detail-item span {
    color: #374151;
    font-weight: 500;
}

.symptom-media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.symptom-media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.symptom-media-item:hover {
    transform: scale(1.05);
}

.symptom-media-item img,
.symptom-media-item video {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.symptom-entry-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.symptom-entry-fields{
    padding: 5px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}


.media-upload-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.media-upload-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.upload-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.upload-controls .btn {
    padding: 8px 12px;
    font-size: 14px;
}

.uploaded-media-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.uploaded-media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: white;
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 12px;
}

.uploaded-media-item img,
.uploaded-media-item video {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.uploaded-media-item .media-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.uploaded-media-item .media-file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uploaded-media-item .file-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    word-break: break-word;
}

.uploaded-media-item .file-size {
    color: #6b7280;
    font-size: 12px;
}

.uploaded-media-item .remove-media-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #dc2626;
    font-size: 12px;
    transition: all 0.2s ease;
}

.uploaded-media-item .remove-media-btn:hover {
    background: white;
    color: #991b1b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.uploaded-media-item .remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #dc2626;
    font-size: 12px;
}

.uploaded-media-item .remove-media:hover {
    background: white;
    color: #991b1b;
}

.large-modal .modal-content {
    max-width: 800px;
    width: 90%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* ===== ACTIVE EVENT CARD DESIGN ===== */

/* Pet Info Section - Reminders Style */
.active-event-pet-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
}

.active-event-pet-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.active-event-pet-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.active-event-pet-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.active-event-pet-breed {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.active-status-badge {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: auto;
}

/* Old pet-details styles removed to prevent conflicts with new compact layout */

/* Old event-status styles removed - using compact layout now */

/* First symptom prompt - simplified one-liner */
.first-symptom-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.first-symptom-prompt i {
    color: #d97706;
    font-size: 18px;
    flex-shrink: 0;
}

.first-symptom-prompt span {
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Removed guidance-card styling to eliminate frame-within-frame issue */

.guidance-card h4 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guidance-card p {
    margin: 0 0 10px 0;
    color: #78350f;
    line-height: 1.4;
    font-size: 13px;
}

.action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #78350f;
    font-weight: 500;
}

.action-list i {
    color: #f59e0b;
    width: 16px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.action-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}

.no-symptoms-yet {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: #64748b;
}

.no-symptoms-yet i {
    font-size: 24px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.no-symptoms-yet p {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
}

.no-symptoms-yet small {
    font-size: 12px;
    color: #94a3b8;
}

/* Clean Symptoms Section */
.logged-symptoms-section {
    margin: 16px 0;
}

.symptoms-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.symptoms-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.symptoms-header i {
    color: #0077B6;
}

/* Clean Symptom Entries */
.symptom-entry {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
}

.symptom-entry.most-recent {
    border-color: #10b981;
    background: #f0fdf4;
}

.symptom-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.symptom-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.symptom-number {
    background: #0077B6;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.symptom-date {
    font-size: 11px;
    color: #64748b;
    flex: 1;
    margin-left: 8px;
}

.recent-badge {
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.symptom-text {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    margin: 4px 0;
}

.symptom-severity-tag {
    align-self: flex-start;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.symptom-card:hover {
    border-color: #0077B6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.1);
}

.symptom-card.latest-symptom {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.symptom-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.symptom-number {
    background: #0077B6;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.symptom-date {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.symptom-severity {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Form Separator */
.form-separator {
    display: flex;
    align-items: center;
    margin: 20px 0 16px 0;
    gap: 12px;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: #d1d5db;
}

.separator-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    background: white;
    padding: 0 8px;
}

/* Severity Colors */
.symptom-severity-tag.severity-mild {
    background: #d1fae5;
    color: #065f46;
}

.symptom-severity-tag.severity-moderate {
    background: #fed7aa;
    color: #9a3412;
}

.symptom-severity-tag.severity-severe {
    background: #fecaca;
    color: #991b1b;
}

.symptom-severity-tag.severity-critical {
    background: #fca5a5;
    color: #7f1d1d;
}

.symptom-content {
    margin-bottom: 8px;
}

.symptom-description {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.symptom-notes {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.symptom-notes i {
    color: #94a3b8;
    margin-top: 2px;
}

.latest-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981;
    color: white;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.latest-indicator i {
    font-size: 8px;
}

/* Responsive Design for Symptom Tracker */
@media (max-width: 768px) {
    .symptom-tracker-header .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .symptom-tracker-header .header-text {
        flex: none;
    }
    
    .symptom-tracker-header .header-actions {
        width: 100%;
    }
    
    .symptom-tracker-header .header-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .symptom-tracker-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .pet-selector {
        justify-content: space-between;
    }
    
    .pet-selector select {
        min-width: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .symptom-entry-details {
        grid-template-columns: 1fr;
    }
    
    .large-modal .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Pet Sharing Styles */
.pet-sharing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.sharing-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sharing-card h3 {
    margin-bottom: 16px;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.pet-preview h4 {
    margin-bottom: 8px;
    color: #1f2937;
}

.pet-preview p {
    margin: 4px 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.share-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f9fafb;
}

.share-info h5 {
    margin: 0 0 4px 0;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
}

.share-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.75rem;
}

.share-actions {
    display: flex;
    gap: 8px;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.co-owner {
    background: #fef3c7;
    color: #92400e;
}

.role-badge.shared-user {
    background: #dbeafe;
    color: #1e40af;
}

/* Pet Selection Modal for Symptom Tracker */
.pet-selection-modal {
    max-width: 600px;
    width: 90%;
}

.pet-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.pet-selection-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    position: relative;
}

.pet-selection-card:hover {
    border-color: #84CFEC;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pet-selection-card .pet-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.pet-selection-card .pet-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-selection-card .pet-initial {
    width: 100%;
    height: 100%;
    background: #84CFEC;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.pet-selection-card .pet-info {
    flex: 1;
}

.pet-selection-card .pet-info h4 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.pet-selection-card .pet-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.pet-selection-card .selection-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #84CFEC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pet-selection-card:hover .selection-indicator {
    opacity: 1;
}

/* Pet Info Display in Event Card */
.pet-info-display {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.pet-info-display .pet-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.pet-info-display .pet-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-info-display .pet-initial {
    width: 100%;
    height: 100%;
    background: #84CFEC;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.pet-info-display .pet-details h4 {
    margin: 0 0 2px 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.pet-info-display .pet-details p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.role-badge.guest-user {
    background: #e5e7eb;
    color: #374151;
}

.shared-pet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
    transition: all 0.2s;
}

.shared-pet-item:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.shared-pet-info h5 {
    margin: 0 0 4px 0;
    color: #374151;
    font-weight: 600;
}

.shared-pet-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .pet-sharing-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sharing-card {
        padding: 16px;
    }
}

/* Button Group Styles */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: 16px;
}

.button-group .btn {
    width: 100%;
}

/* Shareable Link Modal Styles */
.share-link-container {
    margin: 20px 0;
}

.share-link-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.link-display {
    display: flex;
    gap: 8px;
    align-items: center;
}

.link-display input {
    flex: 1;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
}

.link-display input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.link-display .btn {
    flex-shrink: 0;
    padding: 12px 16px;
    white-space: nowrap;
}

.share-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.share-details p {
    margin: 6px 0;
    font-size: 0.875rem;
}

.share-details p:first-child {
    margin-top: 0;
}

.share-details p:last-child {
    margin-bottom: 0;
}

.share-details small {
    color: #6b7280;
    font-style: italic;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* AI Chat Interface Styles - See ChatGPT-style section below for full styles */

.welcome-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.assistant-avatar img {
    border: 2px solid #e5e7eb;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    color: #374151;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 8px;
}

.input-group button.btn-primary {
    background: #3b82f6;
}

.input-group button.btn-secondary {
    background: #6b7280;
}

.input-group button.btn-secondary.recording {
    background: #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Typing indicator animation */
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9ca3af;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.input-group button:hover {
    background: #2563eb;
}

.input-group button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.input-info {
    margin-top: 8px;
    text-align: center;
}

.input-info small {
    color: #6b7280;
    font-size: 12px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message.user .message-content {
    background: #3b82f6;
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.chat-message.assistant .message-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px 18px 18px 4px;
}

.chat-message.assistant .message-content strong,
.chat-message.assistant .message-content b {
    color: #000000;
    font-weight: 600;
}

.chat-message .message-content {
    padding: 12px 16px;
    max-width: 80%;
    word-wrap: break-word;
}

/* Streaming cursor animation for ChatGPT-like effect */
.streaming-content {
    min-height: 24px;
}

.streaming-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #0077B6;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Inline progress indicator for Pet AI file uploads */
.streaming-progress-inline {
    padding: 8px 0;
}

.dots-loading {
    display: inline-block;
    animation: dotsAnimation 1.2s infinite;
    letter-spacing: 2px;
}

@keyframes dotsAnimation {
    0%, 20% {
        opacity: 0.3;
    }
    40% {
        opacity: 0.6;
    }
    60% {
        opacity: 1;
    }
    80%, 100% {
        opacity: 0.3;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .bottom-nav {
        height: 65px;
    }
    
    .bottom-nav-item {
        min-width: 45px;
        height: 45px;
        padding: 6px;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .main-content {
        padding-bottom: 85px;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* AI chat container styles moved to ChatGPT-style section */
    
    .chat-message .message-content {
        max-width: 90%;
    }
}

#vaccinationRequirementModal .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

#vaccinationRequirementModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #6b7280;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
}

.tooltip-icon:hover {
    background: #4a90e2;
}

.tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 250px;
    white-space: normal;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip.wide {
    max-width: 320px;
}

.tooltip.left {
    left: 0;
    transform: translateX(0);
}

.tooltip.right {
    left: auto;
    right: 0;
    transform: translateX(0);
}

/* Help Section Styles */
.help-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.help-section h4 {
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.help-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.help-section li {
    margin-bottom: 0.25rem;
}

.example-text {
    font-style: italic;
    color: #6b7280;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    #vaccinationRequirementModal .form-row {
        grid-template-columns: 1fr;
    }
    
    .requirement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .requirement-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .requirement-actions {
        flex-direction: column;
    }
    
    .tooltip {
        position: fixed;
        bottom: auto;
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: none;
    }
    
    .tooltip::after {
        display: none;
    }
}

.tab-btn:hover {
    color: #4a90e2;
    background-color: #f8f9fa;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.archived-pets-section .section-description {
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Archived Pet Cards */
.archived-pet-card {
    opacity: 0.8;
    border: 2px dashed #ddd;
}

.archived-pet-card:hover {
    opacity: 1;
    border-color: #4a90e2;
}

.archived-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

/* Document Management Styles */
.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.documents-header h2 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

/* Upload Progress Indicator Styles */
.upload-progress {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    animation: slideIn 0.3s ease-out;
}

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

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 500;
}

.progress-info i {
    font-size: 18px;
    color: #3b82f6;
}

.progress-percentage {
    font-weight: 600;
    color: #1e293b;
    font-size: 18px;
}

.progress-bar-container {
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 6px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.upload-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
}

.upload-details span {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.document-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.document-category-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.document-category-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.category-icon {
    font-size: 32px;
    min-width: 32px;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.category-info p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.category-count {
    min-width: 32px;
}

.count-badge {
    background: #6366f1;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.category-documents {
    min-height: 80px;
    margin-bottom: 16px;
}

.no-documents {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.document-item:hover {
    background: #f3f4f6;
}

.document-item i {
    color: #6b7280;
    font-size: 16px;
    min-width: 16px;
}

.doc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.doc-title {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

.doc-date {
    font-size: 12px;
    color: #6b7280;
}

.show-more {
    text-align: center;
    padding: 8px;
    color: #6366f1;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
}

.show-more:hover {
    background: #f0f0ff;
}

.category-actions {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.category-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    font-size: 14px;
}

/* Vaccination Requirements Styles */
.vaccination-requirements-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.country-selector {
    margin-left: auto;
}

.country-selector select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

.requirements-container {
    margin-top: 16px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.requirement-category {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid;
}

.requirement-category.mandatory {
    border-left-color: #dc2626;
}

.requirement-category.recommended {
    border-left-color: #f59e0b;
}

.requirement-category.optional {
    border-left-color: #3b82f6;
}

.requirement-category h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirement-category.mandatory h5 {
    color: #dc2626;
}

.requirement-category.recommended h5 {
    color: #f59e0b;
}

.requirement-category.optional h5 {
    color: #3b82f6;
}

.vaccine-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vaccine-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.vaccine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.vaccine-header strong {
    color: #111827;
    font-size: 14px;
}

.interval {
    font-size: 12px;
    color: #6b7280;
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
}

.vaccine-description {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.requirements-message, .requirements-error {
    padding: 16px;
    text-align: center;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.requirements-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Document Modal Styles */
#documentModal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.document-details {
    padding: 20px 0;
}

.document-details p {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.document-details p:last-child {
    border-bottom: none;
}

.document-file {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

/* Document List Item - DELETED FOR RECREATION */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.document-list-item:hover {
    background: #f9fafb;
}

.document-list-item:last-child {
    border-bottom: none;
}

.doc-icon {
    color: #6b7280;
    font-size: 20px;
    min-width: 20px;
}

.doc-details {
    flex: 1;
}

.doc-details h4 {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.doc-details p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 2px;
}

.doc-actions {
    display: flex;
    gap: 8px;
}

.large-modal .modal-content {
    max-width: 800px;
}

/* Responsive Design for Documents */
@media (max-width: 768px) {
    .document-categories {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .documents-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .document-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .doc-actions {
        align-self: stretch;
    }
}

/* Appointments Tabs Slider */
.appointments-tabs-container {
    margin-bottom: 16px;
}

.appointments-tabs-slider {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.appointments-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appointments-tab:hover {
    color: #0077B6;
}

.appointments-tab.active {
    background: white;
    color: #0077B6;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.15);
}

.appointments-tab i {
    font-size: 14px;
}

/* Appointments Filter Styles */
.appointments-filters {
    margin-bottom: 20px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 100px;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 32px;
}

.filter-select:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.filter-clear-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-clear-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Mobile responsive filters */
@media (max-width: 640px) {
    .appointments-tabs-slider {
        padding: 3px;
    }
    
    .appointments-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .appointments-filters {
        padding: 10px;
        gap: 8px;
    }
    
    .filter-group {
        flex: 1 1 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
    
    .filter-select {
        padding: 8px 10px;
        font-size: 13px;
        padding-right: 28px;
        background-size: 18px;
    }
    
    .filter-clear-btn {
        width: 36px;
        height: 36px;
    }
}

.appointments-table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.appointments-table {
    width: 100%;
    border-collapse: collapse;
}

.appointments-table th {
    background: #f8fafc;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.appointments-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.appointments-table tbody tr:hover {
    background: #f8fafc;
}

.appointment-pet-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appointment-pet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6366f1;
    flex-shrink: 0;
    overflow: hidden;
}

.appointment-pet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appointment-pet-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.appointment-pet-species {
    font-size: 12px;
    color: #6b7280;
}

.appointment-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.appointment-description {
    color: #6b7280;
    font-size: 14px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-date {
    font-weight: 500;
    color: #374151;
}

.appointment-status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.appointment-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.appointment-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.appointment-status-badge.overdue {
    background: #fee2e2;
    color: #991b1b;
}

.appointment-actions {
    display: flex;
    gap: 8px;
}

.appointment-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Appointment Card Layout - Unified Styling */
.appointment-card {
    margin-bottom: 16px;
}

.appointment-card .appointment-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.appointment-card .appointment-row:last-child {
    margin-bottom: 0;
}

.appointment-card .appointment-row i {
    color: #6b7280;
    width: 16px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.appointment-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 4px;
}

.appointment-value {
    color: var(--text-dark);
    font-weight: 400;
}

/* Appointment Header Consistency */
.appointment-card .appointment-header {
    font-size: 16px;
    margin-bottom: 12px;
}

.appointment-card .appointment-type {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
}

.appointment-card .appointment-datetime {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.appointment-card .appointment-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Appointment Linked Items Section */
.appointment-linked-items {
    margin-top: 12px;
}

.linked-items-section {
    margin-bottom: 12px;
}

.linked-items-section:last-child {
    margin-bottom: 0;
}

.linked-items-section h5 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.linked-items-section h5 i {
    color: #6b7280;
    font-size: 12px;
}

.linked-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.linked-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.linked-item .item-icon {
    flex-shrink: 0;
    color: #6b7280;
    font-size: 14px;
}

.linked-item .item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.linked-item .item-title {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.linked-item .item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.linked-item .item-type,
.linked-item .item-date {
    font-size: 11px;
    color: #6b7280;
}

.linked-item .item-description {
    font-size: 12px;
    color: #6b7280;
    width: 100%;
    margin-top: 4px;
}

.linked-item .item-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.linked-item .item-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* Compact linked item variant for simple displays like Vet Report */
.linked-item.linked-item-compact {
    padding: 6px 10px;
}

.linked-item.linked-item-compact .item-info {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.linked-item.linked-item-compact .item-meta {
    margin: 0;
}

/* Form status badges */
.form-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-status.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.form-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.form-status.status-draft {
    background: #e5e7eb;
    color: #4b5563;
}

.form-status.status-submitted {
    background: #dbeafe;
    color: #1e40af;
}

/* Symptom severity badges in linked items */
.linked-item .symptom-severity {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
}

.severity-badge-mild {
    background: #d1fae5;
    color: #065f46;
}

.severity-badge-moderate {
    background: #fef3c7;
    color: #92400e;
}

.severity-badge-severe {
    background: #fee2e2;
    color: #991b1b;
}

.severity-badge-critical {
    background: #fecaca;
    color: #7f1d1d;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design for Appointments Table */
@media (max-width: 768px) {
    .appointments-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .appointments-table-container {
        overflow-x: auto;
    }
    
    .appointments-table {
        min-width: 800px;
    }
    
    .appointment-description {
        max-width: 150px;
    }
    
    .appointment-actions {
        flex-direction: column;
    }
}

/* Vet Booking Styles */
.booking-workflow {
    max-width: 800px;
    margin: 0 auto;
}

.booking-step {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-header h2 {
    color: #1f2937;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.step-header p {
    color: #6b7280;
    font-size: 16px;
}

.pet-selection-grid {
    display: block !important;
    margin-top: 1rem;
    margin-bottom: 24px;
    min-height: 100px;
}

.pet-selection-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.pet-selection-card:hover {
    border-color: #007bff;
    background: #f0f0ff;
    transform: translateY(-2px);
}

.pet-selection-card.selected {
    border-color: #007bff;
    background: #eef2ff;
}

.pet-selection-card .pet-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    object-fit: cover;
    object-position: center center;
    display: block;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.pet-selection-card .pet-info h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pet-selection-card .pet-info p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 4px;
}

/* Additional styles for form email modal */
.selected-pet-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.selected-pet-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pet-photo-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.pet-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.pet-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.search-form {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.clinics-results {
    display: grid;
    gap: 16px;
}

.clinic-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clinic-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.clinic-card.selected {
    border-color: #6366f1;
    background: #eef2ff;
}

.clinic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.clinic-info h3 {
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.clinic-info p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 2px;
}

.clinic-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 500;
    font-size: 14px;
}

.clinic-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.specialty-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.selected-clinic-info {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.selected-clinic-info h3 {
    color: #3730a3;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.appointment-form {
    margin-bottom: 24px;
}

.available-slots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.time-slot {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: #6366f1;
    background: #f0f0ff;
}

.time-slot.selected {
    border-color: #6366f1;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 600;
}

.time-slot.unavailable {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.time-slot.unavailable:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.booking-summary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.booking-summary h3 {
    color: #15803d;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dcfce7;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #374151;
    font-weight: 500;
}

.summary-value {
    color: #1f2937;
    font-weight: 600;
}

.booking-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Weekly Days Grid for Reminders Form */
.weekly-days-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.weekly-day-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.weekly-day-option:hover {
    background-color: #f3f4f6;
}

.weekly-day-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.weekly-day-option span {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

/* Daily Time Slots Styling */
.time-slot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.time-slot-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.time-slot-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: white;
}

.time-slot-input:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.btn-icon-only {
    padding: 8px 10px;
    min-width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger-outline {
    background: white;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.btn-danger-outline:hover {
    background: #dc2626;
    color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .weekly-days-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .weekly-day-option {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .weekly-day-option span {
        font-size: 13px;
    }
    
    .time-slot-item {
        padding: 6px;
        gap: 8px;
    }
    
    .time-slot-input {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .weekly-days-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .weekly-day-option {
        padding: 12px 10px;
        justify-content: flex-start;
    }
}

.booking-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.appointments-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: white;
    color: #6366f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.appointments-grid {
    display: grid;
    gap: 16px;
}

.appointment-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.appointment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.appointment-info h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.appointment-datetime {
    color: #6366f1;
    font-weight: 500;
    font-size: 14px;
}

.appointment-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.appointment-status.confirmed {
    background: #d1fae5;
    color: #065f46;
}

.appointment-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.appointment-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.appointment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.appointment-detail {
    color: #6b7280;
    font-size: 14px;
}

.appointment-detail strong {
    color: #374151;
}

.appointment-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.appointment-actions .delete-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.appointment-actions .delete-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.appointment-actions .delete-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* Vet Form Confirmation Modal Styles */
.vet-form-confirmation {
    max-width: 600px;
    width: 90%;
}

.form-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.form-help {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.generated-link-section {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.link-container label {
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 8px;
}

.link-display {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.link-display input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: monospace;
    background: white;
    font-size: 14px;
}

/* Appointment Documents Styles */
.appointment-documents {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.appointment-documents-header h5 {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.appointment-documents-header i {
    color: #6366f1;
}

.appointment-documents-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.appointment-document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.appointment-document-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.appointment-document-item .document-icon {
    color: #6366f1;
    font-size: 16px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appointment-document-item .document-info {
    flex: 1;
}

.appointment-document-item .document-title {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    margin-bottom: 4px;
}

.appointment-document-item .document-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.appointment-document-item .document-type {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointment-document-item .document-actions {
    display: flex;
    gap: 6px;
}

.appointment-document-item .document-actions .btn {
    padding: 6px 8px;
    font-size: 12px;
    min-width: auto;
}

.appointment-no-documents,
.appointment-documents-error {
    padding: 12px;
    text-align: center;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px dashed #d1d5db;
}

.appointment-no-documents .text-muted,
.appointment-documents-error .text-muted {
    color: #9ca3af;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.documents-loading {
    padding: 12px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.documents-loading i {
    margin-right: 8px;
    color: #6366f1;
}

.copy-btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.link-info {
    color: #059669;
    font-weight: 500;
}

.link-info i {
    margin-right: 4px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .link-display {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
}

/* Enhanced appointment card styles for new structure */
.appointment-pet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.appointment-pet-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.appointment-pet-header .pet-name {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.appointment-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.appointment-header-top h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.appointment-datetime {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.appointment-date, .appointment-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.appointment-date i, .appointment-time i {
    font-size: 12px;
    color: #9ca3af;
}

.appointment-clinic, .appointment-vet {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.appointment-clinic i, .appointment-vet i {
    font-size: 12px;
    color: #9ca3af;
}

.appointment-body {
    margin: 16px 0;
}

.appointment-notes {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.today {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.appointments-section {
    margin-bottom: 32px;
}

.appointments-section .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.appointments-section .appointments-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* Mobile responsive styles for appointment cards */
@media (max-width: 768px) {
    .appointments-section .appointments-grid {
        grid-template-columns: 1fr;
    }
    
    .appointment-datetime {
        flex-direction: column;
        gap: 8px;
    }
    
    .appointment-header-top {
        flex-direction: column;
        gap: 8px;
    }
    
    .appointment-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .appointment-actions .btn {
        width: 100%;
    }
}

.no-appointments {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.no-appointments i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

/* Pet Selection Modal - Uses same styling as document upload */

/* Appointment Form Modal Styles */
.appointment-form-modal {
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.selected-pet-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pet-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pet-photo-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pet-initial-small {
    font-size: 18px;
    font-weight: bold;
    color: #6366f1;
}

.pet-details-small h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.pet-details-small p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.appointment-form-modal .form-group {
    margin-bottom: 16px;
}

.appointment-form-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.appointment-form-modal .form-group input,
.appointment-form-modal .form-group select,
.appointment-form-modal .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.appointment-form-modal .form-group input:focus,
.appointment-form-modal .form-group select:focus,
.appointment-form-modal .form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.appointment-form-modal .form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.appointment-form-modal .button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 480px) {
    .appointment-form-modal .button-group {
        flex-direction: column;
    }
    
    .appointment-form-modal .button-group .btn {
        width: 100%;
    }
}

/* Pet Info in Event Card */
.pet-info-container {
    margin: 12px 0 16px 0;
}

.event-pet-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-pet-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6366f1;
}

.event-pet-name {
    font-weight: 600;
    color: #4f46e5;
    font-size: 16px;
}

@media (max-width: 768px) {
    .booking-step {
        padding: 24px 16px;
    }
    
    .pet-selection-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        padding: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .available-slots {
        grid-template-columns: 1fr;
    }
    
    .booking-actions {
        flex-direction: column;
    }
    
    .booking-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .appointment-details {
        grid-template-columns: 1fr;
    }
    
    .appointment-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .appointment-actions {
        justify-content: stretch;
        flex-direction: column;
    }
}

/* Camera Modal Styles */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.camera-container {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.camera-header {
    background: #2d2d2d;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.camera-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-camera {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-preview {
    position: relative;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

#camera-video {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Crop guide removed per user request */

.focus-indicator {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid #FFD700;
    border-radius: 50%;
    display: none;
    animation: focusPulse 1s ease-out;
    pointer-events: none;
}

@keyframes focusPulse {
    0% { transform: scale(1.5); opacity: 0; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.camera-controls {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    background: #2d2d2d;
}

.camera-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.camera-btn.capture {
    background: #4CAF50;
    color: white;
    font-weight: bold;
}

.camera-btn.capture:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.camera-btn.secondary {
    background: #666;
    color: white;
}

.camera-btn.secondary:hover {
    background: #555;
}

.camera-btn.retake {
    background: #ff9800;
    color: white;
}

.camera-btn.retake:hover {
    background: #f57c00;
}

.capture-icon {
    font-size: 20px;
}

.camera-tips {
    background: #333;
    padding: 15px 20px;
    color: #ccc;
    font-size: 14px;
}

.camera-tips p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.results-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 80vw;
    max-height: 80vh;
    overflow-y: auto;
}

.results-container h3 {
    margin-top: 0;
    color: #333;
}

.key-info {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.key-info p {
    margin: 8px 0;
    font-size: 14px;
}

.results-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #000000;
    color: white;
}

.btn-secondary {
    background: #666;
    color: white;
}

.extracted-text, .structured-data {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.structured-data pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
}

/* Mobile camera optimizations */
@media (max-width: 768px) {
    .camera-container {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    /* Crop guide removed */
    
    .camera-controls {
        flex-direction: column;
        padding: 15px;
    }
    
    .camera-btn {
        width: 100%;
        min-width: auto;
    }
    
    .camera-tips {
        font-size: 13px;
    }
}

/* Feature Access Control Styles */
.upgrade-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.upgrade-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.upgrade-banner-icon {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-banner-icon svg {
    color: white;
}

.upgrade-banner-text {
    flex: 1;
}

.upgrade-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.upgrade-banner-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.upgrade-banner-action {
    flex-shrink: 0;
}

.upgrade-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-restriction {
    background: #f8f9fa;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
}

.restriction-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.restriction-content h4 {
    color: #374151;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.restriction-content p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.basic {
    background: #f3f4f6;
    color: #6b7280;
}

.plan-badge.premium {
    background: #dbeafe;
    color: #3b82f6;
}

.plan-badge.professional {
    background: #d1fae5;
    color: #10b981;
}

.usage-limit-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.usage-limit-warning .warning-icon {
    color: #f59e0b;
    font-size: 20px;
}

.usage-limit-warning .warning-text {
    flex: 1;
    color: #92400e;
    font-size: 14px;
    line-height: 1.4;
}

.feature-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 8px 0;
}

.feature-toggle.disabled {
    opacity: 0.6;
    background: #f3f4f6;
}

.feature-toggle-label {
    font-weight: 500;
    color: #374151;
}

.feature-toggle-description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.toggle-switch.enabled {
    background: #10b981;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.enabled::before {
    transform: translateX(20px);
}

@media (max-width: 768px) {
    .upgrade-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .upgrade-banner-action {
        width: 100%;
    }
    
    .upgrade-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .feature-restriction {
        padding: 30px 15px;
    }
}/* CSS reload: Tue Jul  1 08:15:29 PM UTC 2025 */
/* Force reload: 1751401106 */
/* Force browser refresh: 1751401415 */

/* ULTIMATE FIX: Force all pet images to be circular - highest specificity */
.pet-thumbnail img[src*="pet_"],
.pet-thumbnail img[src*="/uploads/pets/"],
.pet-thumbnail-image-container img[src*="pet_"],
.pet-thumbnail-image-container img[src*="/uploads/pets/"],
.pet-thumbnail-photo[src*="pet_"],
.pet-thumbnail-photo[src*="/uploads/pets/"],
img.pet-thumbnail-photo,
img.pet-thumbnail[src*="pet_"],
img.pet-thumbnail[src*="/uploads/pets/"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    aspect-ratio: 1 / 1 !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* FINAL OVERRIDE - July 1st 2025 - Force circular pet images */
div.pet-thumbnail-image-container {
    border-radius: 50% !important;
    overflow: hidden !important;
    width: 80px !important;
    height: 80px !important;
}

div.pet-thumbnail-container {
    width: 32px !important;
    height: 32px !important;
}

div.pet-thumbnail-image-container img,
div.pet-thumbnail-container img,
img.pet-thumbnail-photo,
img.pet-thumbnail {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}
/* Ultimate force refresh: 1751401662 */

/* Container Specific Fixes for Circular Display */
.pet-thumbnail-container {
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Enhanced Pet Image Circular Styling */
.pet-thumbnail-photo,
.pet-thumbnail-image-container img,
.pet-thumbnail {
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Onboarding Pet Thumbnail - Same styling as regular pet thumbnails */
div.onboarding-pet-thumbnail {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid #e5e7eb !important;
    margin: 0 auto 8px auto !important;
    position: relative !important;
    background: #f3f4f6 !important;
    box-sizing: border-box !important;
    margin-bottom: 2rem;
}

div.onboarding-pet-thumbnail img,
.onboarding-pet-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    justify-content: center; /* centers horizontally */
}

/* New Symptom Tracker Styling */
.new-event-section,
.past-events-section {
    margin-bottom: 30px;
}

/* Cancel Button Styles */
.btn-cancel {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-cancel:active {
    background-color: #bd2130;
    border-color: #b21f2d;
}

.new-event-section h2,
.past-events-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.symptom-event-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.symptom-event-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.entry-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.symptom-description {
    flex: 2;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
}

.symptom-description:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.symptom-datetime {
    flex: 1;
    min-width: 160px;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
}

.symptom-datetime:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.symptom-datetime-btn {
    flex: 1;
    min-width: 160px;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.symptom-datetime-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.symptom-datetime-btn:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.symptom-datetime-btn i {
    color: #6b7280;
    font-size: 16px;
}

.symptom-datetime-btn span {
    flex: 1;
}

/* Rolodex Date Picker Modal Specific Styles */
.rolodex-modal {
    max-width: 500px;
    width: 90%;
}

.date-time-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.date-picker-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.time-picker-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-picker-container label {
    font-weight: 500;
    color: #333;
}

.time-picker-container input[type="time"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.time-picker-container input[type="time"]:focus {
    outline: none;
    border-color: #76b9e1;
    box-shadow: 0 0 0 2px rgba(118, 185, 225, 0.25);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background: #0056b3;
}

.log-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    min-width: 80px;
}

.logged-entry {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logged-entry .entry-text {
    color: #374151;
    font-size: 14px;
}

.logged-entry .entry-time {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.ai-analysis-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.ai-analysis-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.ai-analysis-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.ai-analysis-help {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.ai-analysis-help p {
    margin: 0;
    color: #0c4a6e;
    font-size: 14px;
    line-height: 1.5;
}

.close-event-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
}

.close-event-section h4 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.outcome-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 15px;
}

.outcome-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.close-event-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.close-event-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.start-event-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.start-event-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.past-event-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.past-event-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.past-event-symptoms {
    margin-bottom: 15px;
}

.past-event-symptoms ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.past-event-symptoms li {
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 0 6px 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.symptom-description {
    font-weight: 500;
    color: #374151;
    flex-grow: 1;
}

.symptom-datetime {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-left: 12px;
    white-space: nowrap;
}

.past-event-outcome {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 15px;
}

.past-event-outcome h5 {
    margin: 0 0 8px 0;
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
}

.past-event-outcome p {
    margin: 0;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
}

/* Free user styling */
.free-user-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    color: #92400e;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .entry-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .symptom-description,
    .symptom-datetime {
        flex: none;
        min-width: auto;
        width: 100%;
    }
    
    .log-btn {
        width: 100%;
        margin-top: 10px;
    }
}

/* Extended Onboarding Step Styles */

/* Input group styling for weight field */
.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

.input-suffix {
    color: #2C2C2C;
    font-weight: 500;
    font-size: 16px;
}

/* Photo upload section */
.photo-upload-section {
    text-align: center;
    padding: 20px 0;
}

.photo-preview {
    margin-bottom: 20px;
}

.photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0077B6;
}

.upload-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-camera, .btn-upload {
    background: #0077B6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-camera:hover, .btn-upload:hover {
    background: #005885;
}

/* Document Upload Modal - Improved UX */
.document-upload-modal .upload-modal-content {
    max-width: 380px;
    width: 90%;
    border-radius: 16px;
    overflow: hidden;
}

.document-upload-modal .modal-header {
    background: linear-gradient(135deg, #0077B6 0%, #005885 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-upload-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.document-upload-modal .modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1.1rem;
}

.document-upload-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.upload-modal-body {
    padding: 24px 20px;
}

.upload-options-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.upload-btn-primary,
.upload-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    border: 2px solid transparent;
}

.upload-btn-primary {
    background: #0077B6;
    color: white;
}

.upload-btn-primary:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.upload-btn-primary i {
    font-size: 1.2rem;
}

.upload-btn-secondary {
    background: white;
    color: #0077B6;
    border-color: #0077B6;
}

.upload-btn-secondary:hover {
    background: #f0f7fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.15);
}

.upload-btn-secondary i {
    font-size: 1.2rem;
}

.upload-ai-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FDF6ED 0%, #fff8f0 100%);
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #f0e6d9;
}

.upload-ai-hint i {
    color: #e6a030;
    font-size: 1.1rem;
}

.upload-ai-hint span {
    color: #5a4a3a;
    font-size: 0.9rem;
    line-height: 1.4;
}

.upload-supported-text {
    text-align: center;
    color: #888;
    font-size: 0.8rem;
}

/* Welcome step styling */
.welcome-message {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-message p {
    font-size: 18px;
    line-height: 1.6;
    color: #2C2C2C;
}

.welcome-message strong {
    color: #0077B6;
}

.premium-features-list {
    background: #FDF6ED;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.premium-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-features-list li {
    padding: 8px 0;
    font-size: 16px;
    color: #2C2C2C;
}

.premium-features-list li:before {
    content: "✓";
    color: #2AA876;
    font-weight: bold;
    margin-right: 10px;
}

/* Gender-based spay/neuter options */
#spayNeuterGroup {
    transition: all 0.3s ease;
}

/* Textarea styling */
textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: #0077B6;
}

textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Searchable breed dropdown styles */
.breed-input-container {
    position: relative;
    width: 100%;
}

.breed-dropdown-container {
    position: relative;
    width: 100%;
}

.breed-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 8px 8px;
    overscroll-behavior: contain;
}

.breed-dropdown-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: rgba(0, 119, 182, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.breed-dropdown-item:hover,
.breed-dropdown-item.highlighted {
    background-color: #0077B6;
    color: white;
}

.breed-dropdown-item:last-child {
    border-bottom: none;
}

.breed-dropdown-item.other-option {
    font-style: italic;
    color: #666;
    border-top: 1px solid #ddd;
}

.breed-dropdown-item.other-option:hover,
.breed-dropdown-item.other-option.highlighted {
    background-color: #2AA876;
    color: white;
}

/* Custom breed hint when no matches found */
.breed-dropdown-custom-hint {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2AA876;
    background-color: #f0fdf4;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.breed-dropdown-custom-hint:hover {
    background-color: #dcfce7;
}

.breed-dropdown-custom-hint i {
    color: #2AA876;
    font-size: 16px;
}

.breed-dropdown-custom-hint span {
    font-weight: 500;
}

#breedSearchInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#breedSearchInput:focus {
    outline: none;
    border-color: #0077B6;
}

/* Onboarding Back Button Styling */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.centered-form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    gap: 15px;
}

.form-actions .btn-secondary {
    background-color: #6b7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-actions .btn-secondary:hover {
    background-color: #4b5563;
}

.form-actions .btn-next,
.form-actions .btn-primary {
    flex: 1;
    max-width: 150px;
}

/* Rolodex Date Picker Styles */
.rolodex-date-picker {
    display: flex;
    position: relative;
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rolodex-column {
    flex: 1;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
}

.rolodex-column::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.rolodex-items {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.rolodex-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    scroll-snap-align: center;
    transition: all 0.2s ease;
    user-select: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rolodex-item:not(.padding-item):hover {
    background: rgba(63, 158, 252, 0.1);
}

.rolodex-item.selected {
    color: #3f9efc;
    font-weight: 600;
    background: rgba(63, 158, 252, 0.1);
    transform: scale(1.05);
}

.rolodex-item.padding-item {
    border: none;
    pointer-events: none;
}

.rolodex-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 40px;
    transform: translateY(-50%);
    background: linear-gradient(
        to right,
        rgba(63, 158, 252, 0.1),
        rgba(63, 158, 252, 0.15),
        rgba(63, 158, 252, 0.1)
    );
    border: 2px solid rgba(63, 158, 252, 0.3);
    border-left: none;
    border-right: none;
    pointer-events: none;
    z-index: 1;
}

/* Column separators */
.rolodex-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .rolodex-date-picker {
        height: 180px;
    }
    
    .rolodex-item {
        height: 36px;
        font-size: 15px;
    }
    
    .rolodex-highlight {
        height: 36px;
    }
}

/* Touch scrolling improvements */
.rolodex-column {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.rolodex-column:focus {
    outline: 2px solid #3f9efc;
    outline-offset: -2px;
}

/* Birth Date Button Styles */
.btn-birth-date {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-birth-date:hover {
    background: #e9ecef;
    border-color: #3f9efc;
    color: #3f9efc;
}

.btn-birth-date:focus {
    outline: none;
    border-color: #3f9efc;
    box-shadow: 0 0 0 2px rgba(63, 158, 252, 0.25);
}

.selected-date-display {
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

/* Birth Date Modal Styles */
.birth-date-modal {
    max-width: 480px;
    width: 90%;
}

.birth-date-modal .modal-body {
    padding: 20px;
}

.rolodex-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Modal responsive adjustments */
@media (max-width: 480px) {
    .birth-date-modal {
        width: 95%;
        margin: 20px auto;
    }
    
    .birth-date-modal .modal-body {
        padding: 15px;
    }
    
    .rolodex-container {
        height: 180px;
    }
}

/* Date Selector Button Styling */
.date-selector-btn {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.date-selector-btn:hover {
    background: #f8f9fa;
    border-color: #0056b3;
}

.date-selector-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.selected-date-text {
    color: #28a745;
    font-weight: 500;
    font-size: 14px;
}

/* Rolodex Column Updates */
.rolodex-column {
    flex: 1;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scroll-behavior: smooth;
}

.rolodex-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: center;
    height: max-content;
    padding: 0;
    margin: 0;
}

.rolodex-highlight-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 40px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 5;
}

/* Main Onboarding Section - fullscreen mobile container */
#onboarding-section {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: #F5F5F5 !important;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Ensure body doesn't scroll behind onboarding (for steps 2-5 with swiper) */
body.onboarding-active {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Allow scrolling for step 1 (account creation) which uses auth-section, not swiper */
body.onboarding-active.onboarding-step-1 {
    overflow: auto !important;
    overflow-y: auto !important;
    position: static;
    height: auto;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
}

body.onboarding-active.onboarding-step-1 #auth-section {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Hide ALL other elements during onboarding */
body.onboarding-active .bottom-nav,
body.onboarding-active .ai-assistant-bubble,
body.onboarding-active #dashboard-section,
body.onboarding-active #pets-section,
body.onboarding-active #documents-section,
body.onboarding-active #reminders-section,
body.onboarding-active #appointments-section,
body.onboarding-active .navbar {
    display: none !important;
}

/* Main Onboarding Container - hosts the swiper when moved from auth section */
#main-onboarding-container {
    width: 100%;
    min-height: 100%;
    padding: 20px;
    padding-bottom: 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Swiper Onboarding Carousel Styles */
#onboarding-swiper-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden !important;
}

#onboarding-swiper-container .swiper-wrapper {
    height: auto !important;
}

#onboarding-swiper-container .swiper-slide {
    height: auto !important;
    padding: 0;
    box-sizing: border-box;
    background: #F5F5F5 !important;
}

/* Override background for welcome splash step - matches initial PetHubble splash */
#onboarding-swiper-container .swiper-slide.welcome-splash-step,
#onboarding-swiper-container .swiper-slide:has(.welcome-splash-step) {
    background: radial-gradient(circle at center, #008FE4 0%, #76B9E1 100%) !important;
}

/* Hide non-active slides completely */
#onboarding-swiper-container .swiper-slide:not(.swiper-slide-active) {
    visibility: hidden !important;
    opacity: 0 !important;
}

#onboarding-swiper-container .onboarding-step {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    padding: 20px;
    padding-bottom: 100px;
    box-sizing: border-box;
}

#onboarding-swiper-container .onboarding-step form {
    display: block !important;
    visibility: visible !important;
}

#onboarding-swiper-container .onboarding-step .form-group {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 15px;
}

/* Hide default swiper pagination dots since we use custom ones */
#onboarding-swiper-container .swiper-pagination {
    display: none !important;
}

/* Allow swiping on mobile devices */
#onboarding-swiper-container {
    touch-action: pan-y;
}

/* Shake animation for validation feedback */
.shake-animation {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Welcome Splash Step - hide the swiper slide content, we use overlay instead */
.welcome-splash-step {
    background: transparent !important;
    padding: 0 !important;
}

/* Full screen welcome overlay - hidden by default */
#welcome-splash-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-width: 100vw;
    background: radial-gradient(circle at center, #008FE4 0%, #76B9E1 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full screen welcome overlay - activated via body class */
body.welcome-splash-active #welcome-splash-overlay {
    display: flex !important;
}

/* Fade out animation for welcome celebration screen */
#welcome-splash-overlay.fade-out {
    animation: welcomeFadeOut 0.8s ease-out forwards;
}

@keyframes welcomeFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Legacy class selector for compatibility */
.welcome-splash-overlay {
    display: none;
}

.welcome-splash-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.welcome-neon-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
}

/* Handwriting animation container */
.welcome-word {
    font-family: 'Dancing Script', 'Pacifico', cursive;
    font-size: 3.2rem;
    font-weight: 400;
    color: #fff;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(0 100% 0 0);
}

/* Keep visible after animation */
.welcome-word.visible {
    opacity: 1 !important;
    clip-path: inset(0 0 0 0) !important;
}

/* Writing animation for welcome text - 1s */
.welcome-word.animate-write {
    animation: writeIn 1s ease-out forwards;
}

@keyframes writeIn {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    5% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Pet name appears after welcome */
.pet-name-neon {
    font-family: 'Dancing Script', 'Pacifico', cursive;
    font-size: 3.8rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.7),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    opacity: 0;
    transform: scale(0.8);
}

/* Keep visible after animation */
.pet-name-neon.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Pet name fade-in animation */
.pet-name-neon.animate-appear {
    animation: petNameAppear 0.8s ease-out forwards;
}

@keyframes petNameAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Subtle glow pulse - applied on top of visible state */
.welcome-word.visible.glow-pulse {
    animation: subtleGlowWelcome 2s ease-in-out infinite alternate;
}

.pet-name-neon.visible.glow-pulse {
    animation: subtleGlowPetName 2s ease-in-out infinite alternate;
}

@keyframes subtleGlowWelcome {
    0% {
        opacity: 1;
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.5),
            0 0 15px rgba(255, 255, 255, 0.3);
    }
    100% {
        opacity: 1;
        text-shadow: 
            0 0 12px rgba(255, 255, 255, 0.7),
            0 0 25px rgba(255, 255, 255, 0.5),
            0 0 35px rgba(255, 255, 255, 0.3);
    }
}

@keyframes subtleGlowPetName {
    0% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.6),
            0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.8),
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 40px rgba(255, 255, 255, 0.4);
    }
}

.welcome-splash-button {
    margin-top: 20px;
}

.btn-light-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-light-outline:hover,
.btn-light-outline:active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Floating Pet AI Bubble */
.ai-assistant-bubble {
    position: fixed;
    bottom: 120px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2AA876, #3EBD8C);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(42, 168, 118, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-assistant-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(42, 168, 118, 0.4);
}

.ai-assistant-bubble:active {
    transform: scale(0.95);
}

.bubble-icon {
    position: relative;
    z-index: 2;
}

.bubble-assistant-icon {
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-ai-label {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Pulse animation for the bubble */
.bubble-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2AA876, #3EBD8C);
    opacity: 0.6;
    animation: bubble-pulse 2s infinite;
}

@keyframes bubble-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Mobile responsiveness for the bubble */
@media (max-width: 768px) {
    .ai-assistant-bubble {
        bottom: 100px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .bubble-assistant-icon {
        font-size: 24px;
    }
}

/* =====================================================
   CARE INSTRUCTIONS STYLES
   ===================================================== */

/* Care Instructions Container */
#care-instructions {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* No CSS - let .care-instructions-section handle layout */

/* Medical Information Container */
.medical-information-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Care Instructions Header */
.care-instructions-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
}

.care-instructions-pet-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.care-instructions-pet-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark-blue);
    margin: 0;
}

/* Medical Information Header */
.medical-information-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
}

.medical-information-pet-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark-blue);
    margin: 0;
}

/* Medical Information Title */
.medical-info-title {
    padding: 6px 0 8px 0;
    margin: 0;
    font-size: 24px;
}

.medical-info-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.medical-info-title i {
    color: var(--secondary-blue-chien);
    font-size: 28px;
}

/* Care Instructions Title - Same as Medical Info */
.care-instructions-title {
    padding: 6px 0 8px 0;
    margin: 0;
    font-size: 24px;
}

.care-instructions-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.care-instructions-title i {
    color: var(--secondary-blue-chien);
    font-size: 28px;
}

/* Medical Info Page Responsive for SE iPhone */
@media (max-width: 480px) {
    .medical-info-title h1 {
        font-size: 20px;
        gap: 10px;
        padding: 0 16px;
    }
    
    .medical-info-title i {
        font-size: 24px;
    }
}

/* Health Insurance Expandable Section */
.health-insurance-section {
    margin-top: 6px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.health-insurance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.health-insurance-header:hover {
    background: #f1f5f9;
}

.health-insurance-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark-blue);
}

.health-insurance-title i {
    color: var(--secondary-blue-chien);
    font-size: 1.25rem;
}

.health-insurance-toggle {
    color: #6b7280;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.health-insurance-section.expanded .health-insurance-toggle {
    transform: rotate(180deg);
}

.health-insurance-content {
    display: none;
    background: white;
    max-height: none !important;
    overflow: visible !important;
}

.health-insurance-section.expanded .health-insurance-content {
    display: block;
    max-height: none !important;
    overflow: visible !important;
}

.health-insurance-form {
    padding: 24px;
    max-height: none !important;
    overflow: visible !important;
}

.health-insurance-display {
    padding: 24px;
    max-height: none !important;
    overflow: visible !important;
}

.display-value {
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
    max-height: none !important;
    overflow: visible !important;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.display-value:empty::before {
    content: "Not specified";
    color: #9ca3af;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.file-input {
    padding: 8px 12px !important;
    background: #f9fafb;
    border: 2px dashed #d1d5db !important;
}

.file-help {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Mobile responsiveness for health insurance */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .health-insurance-header {
        padding: 16px 20px;
    }
    
    .health-insurance-form {
        padding: 20px;
    }
    
    .form-actions {
        justify-content: stretch;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Care Instructions Wrapper (for consistent spacing) */
.care-instructions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: none;
}

/* Care Instructions Section Container */
.care-instructions-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: none;
}

/* Individual Care Card */
.care-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: none;
}

/* Care Card Header */
.care-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #f8fafc;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.care-card-header:hover {
    background: #f1f5f9;
}

.care-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin: 0;
}

.care-card-title i {
    color: var(--secondary-blue-chien);
    font-size: 1.25rem;
}

.care-card-toggle {
    color: #6b7280;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.care-card.expanded .care-card-toggle {
    transform: rotate(180deg);
}

/* Care Card Content */
.care-card-content {
    margin-top: 0;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ffffff;
}

.care-card.expanded .care-card-content {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.care-card-form {
    padding: 16px 20px;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.care-card-display {
    padding: 16px 20px;
    margin: 0;
    border-radius: 0;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Care Form Groups */
.care-form-group {
    margin-bottom: 20px;
}

.care-form-group:last-of-type {
    margin-bottom: 24px;
}

.care-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin-bottom: 8px;
}

/* Care Display Values - Plain text, no borders */
.care-card-display .display-value,
.care-display-value {
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark);
    min-height: 20px;
    white-space: pre-wrap;
    word-break: break-word;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.care-card-display .display-value:empty::before,
.care-display-value:empty::before {
    content: "Not specified";
    color: #9ca3af;
    font-style: italic;
}

.care-form-group input,
.care-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.care-form-group input:focus,
.care-form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue-chien);
    box-shadow: 0 0 0 3px rgba(79, 164, 214, 0.1);
}

.care-form-group textarea {
    min-height: 80px;
    max-height: 200px;
}

.care-form-group input::placeholder,
.care-form-group textarea::placeholder {
    color: #9ca3af;
}

/* Care Form Actions */
.care-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.care-form-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.care-form-actions .btn-secondary {
    background: #f8fafc;
    color: #6b7280;
    border-color: #d1d5db;
}

.care-form-actions .btn-secondary:hover {
    background: #f1f5f9;
    color: #374151;
}

.care-form-actions .btn-primary {
    background: linear-gradient(135deg, var(--secondary-blue-chien), var(--secondary-blue-chat));
    color: white;
    border-color: var(--secondary-blue-chien);
}

.care-form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #4590c2, #6ba8d1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 164, 214, 0.3);
}

/* Emergency Information Card Styles - Use Care Card Styling */
.emergency-info-section {
    margin-bottom: 24px;
}

.emergency-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.emergency-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #f8fafc;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.emergency-card-header:hover {
    background: #f1f5f9;
}

.emergency-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin: 0;
}

.emergency-card-title i {
    color: var(--secondary-blue-chien);
    font-size: 1.25rem;
}

.emergency-card-toggle {
    color: #6b7280;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.emergency-card.expanded .emergency-card-toggle {
    transform: rotate(180deg);
}

.emergency-card-content {
    margin-top: 0;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ffffff;
}

.emergency-card.expanded .emergency-card-content {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.emergency-card-display {
    padding: 16px 20px;
    margin: 0;
    border-radius: 0;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.emergency-card-form {
    padding: 16px 20px;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.emergency-card-display .form-group,
.emergency-card-form .form-group {
    margin-bottom: 16px;
}

.emergency-card-display .form-group label,
.emergency-card-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin-bottom: 8px;
}

.emergency-card-display .display-value {
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark);
    min-height: 20px;
    white-space: pre-wrap;
    word-break: break-word;
    background: none;
    border: none;
}

.emergency-card-display .display-value:empty::before {
    content: "Not specified";
    color: #9ca3af;
    font-style: italic;
}

.emergency-card-form input,
.emergency-card-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.emergency-card-form input:focus,
.emergency-card-form textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.emergency-card-form textarea {
    min-height: 80px;
    max-height: 200px;
}

.emergency-card-form input::placeholder,
.emergency-card-form textarea::placeholder {
    color: #dc2626;
}

.emergency-card .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #fecaca;
}

.emergency-card .form-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.emergency-card .form-actions .btn-secondary {
    background: #fef2f2;
    color: #7f1d1d;
    border-color: #fecaca;
}

.emergency-card .form-actions .btn-secondary:hover {
    background: #fee2e2;
    color: #7f1d1d;
}

.emergency-card .form-actions .btn-primary {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border-color: #dc2626;
}

.emergency-card .form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ===== Grouped Emergency Contacts Cards ===== */
.emergency-contacts-grouped {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.emergency-contacts-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.emergency-group-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.emergency-group-card.expanded {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.emergency-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.emergency-group-header:hover {
    background: #f1f5f9;
}

.emergency-group-card.expanded .emergency-group-header {
    border-bottom-color: #e5e7eb;
}

.emergency-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin: 0;
}

.emergency-group-card.expanded .emergency-card-toggle {
    transform: rotate(180deg);
}

.emergency-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
    background: white;
}

.emergency-group-card.expanded .emergency-group-content {
    max-height: 500px;
    padding: 12px 16px 16px;
}

/* Contact field layout */
.contact-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.contact-field:last-child {
    border-bottom: none;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.contact-value {
    font-size: 0.9375rem;
    color: #1f2937;
    line-height: 1.4;
}

/* Tappable phone link styles */
.phone-link {
    color: var(--secondary-blue-chien);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.phone-link:hover {
    color: #0066aa;
    text-decoration: underline;
}

.phone-link::before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
}

/* Edit button container at bottom */
.emergency-contacts-actions {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

.emergency-contacts-actions .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Form section titles */
.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary-blue-chien);
}

.form-section-title:first-child {
    margin-top: 0;
}

/* Mobile optimization for grouped cards */
@media (max-width: 480px) {
    .emergency-group-header {
        padding: 12px 14px;
    }
    
    .emergency-group-title {
        font-size: 0.9375rem;
    }
    
    .emergency-group-card.expanded .emergency-group-content {
        padding: 10px 14px 14px;
    }
    
    .contact-field {
        padding: 6px 0;
    }
    
    .contact-label {
        font-size: 0.6875rem;
    }
    
    .contact-value {
        font-size: 0.875rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #care-instructions {
        padding: 16px;
    }
    
    .care-instructions-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }
    
    .care-instructions-pet-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .care-instructions-pet-name {
        font-size: 1.5rem;
    }
    
    .care-card-header {
        padding: 16px 20px;
    }
    
    .care-card-title {
        font-size: 1rem;
    }
    
    .care-card-form {
        padding: 20px;
    }
    
    .care-form-actions {
        flex-direction: column;
    }
    
    .care-form-actions .btn {
        width: 100%;
    }
    
    .emergency-card-header {
        padding: 16px 20px;
    }
    
    .emergency-card-title {
        font-size: 1rem;
    }
    
    .emergency-card-form {
        padding: 20px;
    }
    
    .emergency-card .form-actions {
        flex-direction: column;
    }
    
    .emergency-card .form-actions .btn {
        width: 100%;
    }
}

/* Breed Dropdown Autocomplete Styling */
.breed-dropdown-container {
    position: relative;
}

.breed-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.breed-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.breed-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #008FE4;
}

.breed-dropdown-item:last-child {
    border-bottom: none;
}

.breed-dropdown-item.selected {
    background-color: #008FE4;
    color: white;
}

/* Input field styling for breed search */
#editPetBreedSearchInput,
#addPetBreedSearchInput {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    display: block !important;
    visibility: visible !important;
}

#editPetBreedSearchInput:focus,
#addPetBreedSearchInput:focus {
    outline: none;
    border-color: #008FE4;
    box-shadow: 0 0 0 3px rgba(0, 143, 228, 0.1);
}

/* Make sure dropdown appears above other modal elements */
.modal .breed-dropdown-list {
    z-index: 1050;
}

/* Force visibility for breed dropdown fields - Priority CSS Override */
.breed-dropdown-container.show,
.breed-dropdown-container.show input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Additional force display for Add Pet modal breed fields */
#addPetModal .breed-dropdown-container {
    display: block !important;
    visibility: visible !important;
}

#addPetModal #addPetBreedSearchInput {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Pet Profile Care Instructions Section */
.pet-care-section {
    background: white;
    border-radius: 12px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.care-header {
    text-align: center;
    margin-bottom: 20px;
}

.edit-care-btn {
    background: #000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-care-btn:hover {
    background: #333;
}

.care-instructions-container {
    text-align: center;
}

.pet-photo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}

.care-pet-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.care-pet-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.care-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.care-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.care-item:hover {
    background: #e9ecef;
}

.care-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.care-item-header i:first-child {
    color: #666;
    width: 20px;
}

.care-item-title {
    font-weight: 500;
    color: #333;
}

.care-item-header .fa-chevron-right {
    color: #999;
}

.care-item-indicator {
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    margin-left: 10px;
}

/* Pet AI Section */
.ai-assistant-section {
    text-align: center;
    margin: 20px 0;
}

.ai-assistant-btn {
    background: #000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.ai-assistant-btn:hover {
    background: #333;
}

.ai-assistant-btn i {
    margin-right: 10px;
}

/* Enhanced Pet Info Card */
.enhanced-pet-info {
    background: linear-gradient(135deg, #84CFEC 0%, #6BB6CC 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: white;
}

.pet-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}


.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.medical-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.medical-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.medical-item:last-child {
    margin-bottom: 0;
}

.medical-label {
    font-weight: 500;
    opacity: 0.9;
}

.medical-value {
    font-weight: 600;
}

/* Medication Card Styling */
.medication-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.medication-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.medication-card:last-child {
    margin-bottom: 0;
}

.medication-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.medication-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.medication-status.active {
    background: #2AA876;
}

.medication-status.inactive {
    background: #6c757d;
}

.medication-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
}

.medication-actions {
    display: flex;
    gap: 4px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.medication-card:hover .medication-actions {
    opacity: 1;
}

.medication-delete,
.medication-edit,
.medication-archive,
.medication-restore {
    opacity: 1;
}

.medication-edit {
    color: #0077B6;
}

.medication-edit:hover {
    color: #005a8c;
}

/* Archived medication card styling */
.medication-card.archived {
    opacity: 0.7;
    background: #f1f1f1;
    border-color: #ddd;
}

.medication-card.archived .medication-name {
    color: #666;
}

/* Archived medications section */
.archived-medications-section {
    margin-top: 16px;
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
}

.archived-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
    width: 100%;
    text-align: left;
}

.archived-toggle:hover {
    color: #495057;
}

.archived-toggle i {
    transition: transform 0.2s ease;
}

.archived-medications-list {
    margin-top: 12px;
}

.medication-card-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 20px;
}

.medication-detail-row {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.4;
}

.medication-label {
    color: #6c757d;
    margin-right: 6px;
    flex-shrink: 0;
}

.medication-value {
    color: #2C2C2C;
    flex: 1;
}

/* Condition Card Styling - matches medication cards without status dot */
.condition-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.condition-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.condition-card:last-child {
    margin-bottom: 0;
}

.condition-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.condition-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
}

.condition-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.condition-status.active {
    background: #2AA876;
}

.condition-status.inactive {
    background: #6c757d;
}

.condition-actions {
    display: flex;
    gap: 4px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.condition-card:hover .condition-actions {
    opacity: 1;
}

.condition-delete,
.condition-edit,
.condition-archive,
.condition-restore {
    opacity: 1;
}

.condition-card.archived {
    background: #f5f5f5;
    border-color: #ddd;
}

.condition-card.archived .condition-name {
    color: #888;
}

.condition-card.archived .condition-label,
.condition-card.archived .condition-value {
    color: #999;
}

.archived-conditions-section {
    margin-top: 16px;
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
}

/* Vaccination Card Styling - matches medication/condition cards with status indicators */
.vaccination-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.vaccination-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vaccination-card:last-child {
    margin-bottom: 0;
}

.vaccination-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vaccination-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
}

.vaccination-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vaccination-status.active {
    background: #2AA876;
}

.vaccination-status.scheduled {
    background: #0077B6;
}

.vaccination-status.overdue {
    background: #ef4444;
}

.vaccination-status-text.active {
    color: #2AA876;
}

.vaccination-status-text.scheduled {
    color: #0077B6;
}

.vaccination-status-text.overdue {
    color: #ef4444;
    font-weight: 600;
}

.vaccination-actions {
    display: flex;
    gap: 4px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.vaccination-card:hover .vaccination-actions {
    opacity: 1;
}

.vaccination-delete,
.vaccination-edit,
.vaccination-archive,
.vaccination-restore {
    opacity: 1;
}

.vaccination-card.archived {
    background: #f5f5f5;
    border-color: #ddd;
}

.vaccination-card.archived .vaccination-name {
    color: #888;
}

.vaccination-card.archived .vaccination-label,
.vaccination-card.archived .vaccination-value {
    color: #999;
}

.archived-vaccinations-section {
    margin-top: 16px;
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
}

.vaccination-card-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 20px;
}

.vaccination-detail-row {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.4;
}

.vaccination-label {
    color: #6c757d;
    margin-right: 6px;
    flex-shrink: 0;
}

.vaccination-value {
    color: #2C2C2C;
    flex: 1;
}

.condition-card-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
}

.condition-detail-row {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.4;
}

.condition-label {
    color: #6c757d;
    margin-right: 6px;
    flex-shrink: 0;
}

.condition-value {
    color: #2C2C2C;
    flex: 1;
}

/* Mobile responsive adjustments for pet profile */
@media (max-width: 768px) {
    .pet-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .care-items-list {
        gap: 8px;
    }
    
    .care-item {
        padding: 12px;
    }
    
    .ai-assistant-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Pet AI Floating Bubble - overrides for specific contexts */
.ai-assistant-bubble::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #2AA876, #3EBD8C);
    border-radius: 50%;
    opacity: 0.5;
    animation: bubble-pulse 2s infinite;
    z-index: -1;
}

/* First-use attention animation for Pet AI bubble */
@keyframes pet-ai-attention {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.ai-assistant-bubble.attention-animation {
    animation: pet-ai-attention 0.8s ease-in-out infinite;
}

.ai-assistant-bubble.attention-animation::before {
    animation: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .ai-assistant-bubble {
        bottom: 110px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}

/* Shared access indicator styling */
.shared-access-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
}

.shared-access-indicator i {
    color: #9ca3af;
}


/* Read-only access notice for care instructions */
.read-only-notice {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
}

.read-only-notice i {
    margin-right: 8px;
    color: #ffc107;
}

/* ============================
   SYMPTOM TRACKER EVENT SYSTEM
   ============================ */

/* Current Event Container */
#currentEventContainer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

#startEventContainer {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.current-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.current-event-header h3 {
    margin: 0;
    color: white;
    font-size: 1.4em;
}

.close-event-btn {
    background: #dc2626;
    border: 2px solid #dc2626;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-event-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

/* Current event symptoms */
#currentEventSymptoms {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 100px;
}

.current-symptom-entry {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid rgba(255, 255, 255, 0.4);
}

.current-symptom-entry:last-child {
    margin-bottom: 0;
}

.symptom-time {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
    display: block;
}

.symptom-description {
    font-weight: 500;
    margin-bottom: 5px;
}

.symptom-severity {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.empty-symptoms {
    text-align: center;
    opacity: 0.7;
    padding: 20px;
    font-style: italic;
}

/* Start Event Button */
.start-event-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ============================
   ENHANCED SYMPTOM TRACKER
   ============================ */

/* Enhanced symptom tracker with new inline form and triad fields */

/* Symptom action bar */
.symptom-action-bar {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.btn-add-symptom, .btn-ask-ai, .btn-organize-ai {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-add-symptom {
    background: #0077B6;
    color: white;
}

.btn-add-symptom:hover {
    background: #005a8b;
}

.btn-add-symptom.active {
    background: #005a8b;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.btn-ask-ai {
    background: #2AA876;
    color: white;
}

.btn-ask-ai:hover {
    background: #228a5e;
}

.btn-ask-ai:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-organize-ai {
    background: #2AA876;
    color: white;
}

.btn-organize-ai:hover {
    background: #228a5e;
}

.btn-organize-ai:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-summarize-export {
    background: #0077B6;
    color: white;
}

.btn-summarize-export:hover {
    background: #005f8f;
}

.btn-summarize-export:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Symptom Organizer Modal - Pet AI Style */
.symptom-organizer-modal {
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.symptom-organizer-modal-content {
    width: 95%;
    max-width: 500px;
    height: 85vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.symptom-organizer-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #0077B6;
    color: white;
    border-bottom: none;
}

.symptom-organizer-modal-content .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.symptom-organizer-modal-content .modal-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 14px;
}

.symptom-organizer-modal-content .modal-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.symptom-organizer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: #f7f7f8;
}

.symptom-organizer-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    background: #FDF6ED;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    border-bottom: 1px solid #e5e5e5;
}

.symptom-organizer-disclaimer i {
    color: #f59e0b;
    margin-top: 2px;
}

.symptom-organizer-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f7f7f8;
}

.symptom-organizer-chat-messages .chat-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
}

.symptom-organizer-chat-messages .chat-message.assistant-message {
    flex-direction: row;
}

.symptom-organizer-chat-messages .chat-message.user-message {
    flex-direction: row-reverse;
}

.symptom-organizer-chat-messages .assistant-message .message-content {
    background: white;
    color: #2c2c2c;
    border: 1px solid #e5e7eb;
    border-radius: 18px 18px 18px 4px;
    padding: 12px 16px;
    max-width: 85%;
    line-height: 1.5;
}

.symptom-organizer-chat-messages .user-message .message-content {
    background: #3b82f6;
    color: white;
    border-radius: 18px 18px 4px 18px;
    padding: 12px 16px;
    max-width: 85%;
    line-height: 1.5;
}

.symptom-organizer-chat-messages .message-content {
    word-wrap: break-word;
}

.symptom-organizer-chat-messages .message-content p {
    margin: 0 0 10px 0;
}

.symptom-organizer-chat-messages .message-content p:last-child {
    margin-bottom: 0;
}

.symptom-organizer-chat-messages .message-content ul,
.symptom-organizer-chat-messages .message-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.symptom-organizer-chat-messages .message-content strong,
.symptom-organizer-chat-messages .message-content b {
    color: inherit;
    font-weight: 600;
}

.symptom-organizer-chat-messages .typing-indicator .message-content {
    color: #666;
}

/* Assistant avatar for Symptom Organizer */
.symptom-organizer-chat-messages .assistant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0077B6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.symptom-organizer-chat-messages .assistant-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.symptom-organizer-footer {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e5e5e5;
}

.symptom-organizer-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f7f7f8;
    border-radius: 24px;
    padding: 6px 6px 6px 12px;
    border: 1px solid #e5e5e5;
    width: 100%;
}

.symptom-organizer-input-container input {
    flex: 1;
    padding: 8px 4px;
    border: none;
    background: transparent;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.symptom-organizer-input-container input:focus {
    outline: none;
}

.symptom-organizer-input-container button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0077B6;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.symptom-organizer-input-container button:hover {
    background: #005f8f;
}

.symptom-organizer-input-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Send button - force perfect circle */
.symptom-organizer-input-container #symptomOrganizerSendBtn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #0077B6 !important;
}

.symptom-organizer-attach-btn {
    background: transparent !important;
    color: #666 !important;
    flex-shrink: 0;
    width: 32px !important;
    height: 32px !important;
}

.symptom-organizer-attach-btn:hover {
    background: #e5e5e5 !important;
    color: #333 !important;
}

.symptom-organizer-input-container input[type="text"] {
    flex: 1;
    min-width: 0;
}

/* Export Summary Modal */
.export-summary-modal {
    z-index: 10001;
}

.export-summary-modal-content {
    width: 95%;
    max-width: 600px;
    height: 85vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
}

.export-summary-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0077B6 0%, #005f8f 100%);
    color: white;
    border-bottom: none;
}

.export-summary-modal-content .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-summary-modal-content .modal-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.export-summary-modal-content .modal-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.export-summary-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.export-summary-disclaimer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #FDF6ED;
    color: #856404;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0e6d8;
}

.export-summary-disclaimer i {
    color: #0077B6;
}

.export-summary-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.export-summary-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    color: #666;
}

.export-summary-loading i {
    font-size: 2rem;
    color: #0077B6;
}

.export-summary-footer {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.export-summary-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-summary-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-width: 140px;
    justify-content: center;
}

.btn-export-txt {
    background: #0077B6;
    color: white;
}

.btn-export-txt:hover {
    background: #005f8f;
}

.btn-copy-clipboard {
    background: #2AA876;
    color: white;
}

.btn-copy-clipboard:hover {
    background: #228a5e;
}

.btn-copy-clipboard.copied {
    background: #666;
}

@media (max-width: 480px) {
    .export-summary-modal-content {
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
    
    .export-summary-actions {
        flex-direction: column;
    }
    
    .export-summary-actions .btn {
        width: 100%;
    }
}

/* Consolidated Actions Section */
.symptom-actions-consolidated {
    margin: 16px 0;
}

.symptom-actions-consolidated .primary-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.symptom-actions-consolidated .primary-actions .btn-add-symptom,
.symptom-actions-consolidated .primary-actions .btn-ask-ai,
.symptom-actions-consolidated .primary-actions .btn-organize-ai,
.symptom-actions-consolidated .primary-actions .btn-summarize-export {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.symptom-actions-consolidated .secondary-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 0;
}

.btn-secondary-action {
    background: #0077B6;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-secondary-action:hover {
    background: #005a8b;
    color: white;
}

.btn-secondary-action.btn-close-event {
    background: #1e293b;
    color: white;
}

.btn-secondary-action.btn-close-event:hover {
    background: #0f172a;
    color: white;
}


/* Mobile responsive for consolidated actions */
@media (max-width: 480px) {
    .symptom-actions-consolidated .primary-actions {
        flex-direction: column;
    }
    
    .symptom-actions-consolidated .secondary-actions {
        flex-wrap: wrap;
    }
}

/* Inline symptom form */
.inline-symptom-form {
    transition: all 0.3s ease;
    overflow: hidden;
}

.inline-symptom-form.hide {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

.inline-symptom-form.show {
    max-height: 2000px !important;
    opacity: 1 !important;
    margin: 16px 0 !important;
    visibility: visible !important;
    display: block !important;
}

.form-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Form sections */
.form-section {
    margin-bottom: 24px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 600;
}

.section-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Form groups and rows */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

/* Big Three Triad Fields */
.big-three {
    background: #fdf6ed;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e6c886;
}

.triad-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e6c886;
}

.triad-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.triad-label {
    font-weight: 600;
    color: #2c2c2c;
    min-width: 80px;
}

.triad-buttons {
    display: flex;
    gap: 8px;
}

.triad-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.triad-btn:hover {
    border-color: #0077B6;
    background: #f0f8ff;
}

.triad-btn.selected {
    background: #0077B6;
    border-color: #0077B6;
    color: white;
}

/* Triad summary in timeline */
.triad-summary {
    display: flex;
    gap: 16px;
    margin: 8px 0;
    padding: 12px;
    background: #fdf6ed;
    border-radius: 8px;
    border: 1px solid #e6c886;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.triad-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    flex: 1; /* Distribute space evenly */
    min-width: 0; /* Prevent flex items from growing too large */
}

/* Mobile responsive layout for Big Three Status */
@media (max-width: 480px) {
    .triad-summary {
        flex-direction: column;
        gap: 12px;
    }
    
    .triad-item {
        flex: none;
        justify-content: flex-start;
        padding: 8px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 4px;
        border: 1px solid #e6c886;
    }
    
    .triad-item .triad-label {
        font-weight: 500;
    }
}

.triad-less {
    color: #dc3545;
}

.triad-more {
    color: #fd7e14;
}

.triad-normal {
    color: #28a745;
}


/* Symptom Thin Card Layout */
.symptom-thin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid #0077B6;
}

.symptom-thin-card:hover {
    background: #f8fafc;
    border-color: #0077B6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.1);
}

.symptom-thin-card.most-recent {
    border-left-color: #2AA876;
    background: #f0fdf4;
}

.symptom-thin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.symptom-number {
    background: #0077B6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.symptom-date, .symptom-time {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.symptom-severity-tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-mild {
    background: #dcfce7;
    color: #166534;
}

.severity-moderate {
    background: #fef3c7;
    color: #92400e;
}

.severity-severe {
    background: #fee2e2;
    color: #991b1b;
}

.recent-badge {
    background: #2AA876;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.symptom-preview-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    font-style: italic;
    padding-left: 4px;
}

/* Symptom Detail Modal */
.symptom-detail-modal .modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.symptom-detail-content {
    padding: 20px 0;
}

.detail-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h4 {
    color: #0077B6;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    color: #374151;
    font-size: 15px;
}

.symptom-description-full {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #0077B6;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.triad-detail-display {
    background: #f0fdf4;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.no-data-message {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.no-data-message i {
    margin-right: 8px;
    color: #9ca3af;
}

/* Detail Media Grid */
.detail-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.detail-media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
    aspect-ratio: 1;
}

.detail-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.detail-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-media-item:hover img {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
    font-size: 20px;
}

.detail-media-item:hover .media-overlay {
    opacity: 1;
}

/* Media Lightbox */
.media-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.media-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox-content img,
.media-lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    font-size: 18px;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: white;
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .symptom-thin-info {
        gap: 8px;
    }
    
    .symptom-date, .symptom-time {
        font-size: 12px;
    }
    
    .symptom-preview-text {
        font-size: 12px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* Radio groups */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    width: auto;
}

/* DateTime picker button */
.datetime-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.datetime-btn:hover {
    border-color: #0077B6;
}

.native-datetime-input {
    width: 100%;
    padding: 12px 14px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.native-datetime-input:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.native-datetime-input:hover {
    border-color: #0077B6;
}

/* Optional section (collapsible) */
.optional-section .section-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #0077B6;
    padding: 8px 0;
    width: 100%;
    justify-content: flex-start;
}

.optional-section .section-toggle i {
    transition: transform 0.2s ease;
}

.optional-section.expanded .section-toggle i {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.optional-section.expanded .collapsible-content {
    max-height: 500px;
}

/* Media button */
.media-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #2AA876;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.media-btn:hover {
    background: #228a5e;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #0077B6;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #005a8b;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c2c2c;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Enhanced symptom entries */
.symptom-entry {
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.symptom-entry.most-recent {
    border-color: #0077B6;
    box-shadow: 0 4px 8px rgba(0, 119, 182, 0.15);
}

.symptom-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.symptom-number {
    background: #0077B6;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.symptom-date, .symptom-time {
    font-size: 13px;
    color: #666;
}

.recent-badge {
    background: #2AA876;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.symptom-text {
    font-size: 15px;
    color: #2c2c2c;
    margin: 12px 0;
    line-height: 1.4;
}

.symptom-details {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
    flex-wrap: wrap;
}

.symptom-severity-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-mild {
    background: #d1ecf1;
    color: #0c5460;
}

.severity-moderate {
    background: #fff3cd;
    color: #856404;
}

.severity-severe {
    background: #f8d7da;
    color: #721c24;
}

.progression-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.progression-badge.improving {
    background: #d4edda;
    color: #155724;
}

.progression-badge.worse {
    background: #f8d7da;
    color: #721c24;
}

.duration-badge {
    background: #e2e3e5;
    color: #383d41;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
}

/* Context and notes */
.context-note, .vet-note {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
    margin: 8px 0;
}

.context-note i, .vet-note i {
    margin-right: 6px;
    color: #6c757d;
}

.vet-note {
    background: #f0f8ff;
    border-left: 4px solid #0077B6;
}

/* Media thumbnails */
.media-thumbnails {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.media-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.media-thumb:hover {
    border-color: #0077B6;
}

.media-thumb img, .media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.media-thumb:hover .media-overlay {
    opacity: 1;
}

.media-overlay i {
    color: white;
    font-size: 18px;
}

/* Media view modal */
.media-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.media-view-backdrop {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-view-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.media-view-container img,
.media-view-container video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.close-media-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #2c2c2c;
    z-index: 10001;
}

/* AI Analysis Card */
.ai-analysis-card {
    background: #E3F2FD;
    color: #2C2C2C;
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 1px solid #BBDEFB;
}

.analysis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.analysis-icon {
    width: 40px;
    height: 40px;
    background: #0077B6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.analysis-title h4 {
    margin: 0;
    font-size: 16px;
    color: #2C2C2C;
}

.analysis-time {
    font-size: 12px;
    color: #666;
}

.dismiss-btn {
    background: rgba(0, 119, 182, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0077B6;
    transition: background 0.2s;
}

.dismiss-btn:hover {
    background: rgba(0, 119, 182, 0.2);
}

.analysis-content {
    line-height: 1.6;
    margin-bottom: 16px;
}

.analysis-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(0, 119, 182, 0.08);
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #555;
}

/* Mobile responsiveness for enhanced symptom tracker */
@media (max-width: 768px) {
    .symptom-action-bar {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .triad-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
    }
    
    .triad-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 55px;
        flex: 0 0 auto;
        white-space: nowrap;
        text-align: center;
    }
    
    .symptom-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .media-thumbnails {
        justify-content: flex-start;
    }
    
    .media-view-container {
        max-width: 95%;
        max-height: 95%;
    }
}
}

.start-event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Current symptom form */
.current-symptom-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.symptom-input-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 15px;
}

.symptom-input-group input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1em;
}

.symptom-input-group input[type="text"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: white;
}

.log-symptom-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.log-symptom-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Past Events Section */
.past-events-section {
    margin-top: 30px;
}

.past-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.past-events-header h2 {
    margin: 0;
    color: #495057;
    font-size: 1.5em;
}

.past-event-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.past-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.past-event-header h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.2em;
}

.event-dates {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.event-start, .event-end {
    font-weight: 500;
}

.event-pet {
    font-weight: 600;
    color: #667eea;
}

.past-event-symptoms {
    margin-bottom: 15px;
}

.symptom-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #dee2e6;
}

.symptom-item:last-child {
    margin-bottom: 0;
}

.symptom-item .symptom-time {
    color: #6c757d;
    font-size: 0.85em;
    display: block;
    margin-bottom: 5px;
}

.symptom-item .symptom-description {
    color: #495057;
    font-weight: 500;
    margin-bottom: 5px;
}

.severity-mild { background-color: #d4edda; color: #155724; }
.severity-moderate { background-color: #fff3cd; color: #856404; }
.severity-severe { background-color: #f8d7da; color: #721c24; }

.past-event-summary {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #007bff;
    color: #004085;
    font-size: 0.95em;
}

/* Past Events Controls for Bulk Selection */
.past-events-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.select-all-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-all-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.select-all-container label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.delete-selected-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.delete-selected-btn:hover:not(:disabled) {
    background: #c82333;
}

.delete-selected-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Past Event Wrapper with Checkbox */
.past-event-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.event-checkbox-container {
    padding-top: 8px;
    flex-shrink: 0;
}

.event-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.past-event-wrapper .past-event-card {
    flex: 1;
    margin: 0;
}

/* Guidance Halo Effect for Form Fields */
.guidance-halo {
    position: relative;
    z-index: 10;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.3),
        0 0 0 6px rgba(59, 130, 246, 0.2),
        0 0 20px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6 !important;
    animation: guidance-pulse 2s ease-in-out infinite;
}

@keyframes guidance-pulse {
    0%, 100% {
        box-shadow: 
            0 0 0 3px rgba(59, 130, 246, 0.3),
            0 0 0 6px rgba(59, 130, 246, 0.2),
            0 0 20px rgba(59, 130, 246, 0.4),
            0 0 40px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 
            0 0 0 4px rgba(59, 130, 246, 0.4),
            0 0 0 8px rgba(59, 130, 246, 0.3),
            0 0 25px rgba(59, 130, 246, 0.5),
            0 0 50px rgba(59, 130, 246, 0.3);
    }
}

/* Ensure the halo is visible above other elements */
.guidance-halo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}

/* Batch Controls for Reminders */
.batch-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.batch-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

.batch-select-all input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    transform: scale(1.2);
}

.select-all-text {
    font-weight: 500;
}

/* Series checkbox styles */
.series-title-with-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.series-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.series-checkbox input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1);
    cursor: pointer;
}

.series-checkbox .series-title {
    margin: 0;
    font-size: 1.1rem;
}

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

.reminder-checkbox {
    margin: 0;
    cursor: pointer;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 5px;
}

.btn-warning {
    background-color: #f39c12 !important;
    border-color: #e67e22 !important;
    color: white !important;
}

.btn-warning:hover {
    background-color: #e67e22 !important;
    border-color: #d35400 !important;
}

/* Form Templates Grid Styles */
.form-templates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.form-template-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-template-card:hover {
    border-color: #0077B6;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.15);
}

.form-template-card .template-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0077B6, #2AA876);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.form-template-card .template-icon i {
    color: white;
    font-size: 24px;
}

.form-template-card .template-info {
    flex: 1;
}

.form-template-card .template-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.form-template-card .template-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.form-template-card .template-action {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.2s ease;
}

.form-template-card:hover .template-action {
    color: #0077B6;
}

/* Mobile responsive for form templates */
@media (max-width: 768px) {
    .form-template-card {
        padding: 12px;
    }
    
    .form-template-card .template-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .form-template-card .template-icon i {
        font-size: 20px;
    }
    
    .form-template-card .template-info h3 {
        font-size: 15px;
    }
    
    .form-template-card .template-info p {
        font-size: 13px;
    }
}

/* User Forms List Styles */
.forms-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.section-subheader {
    margin-bottom: 16px;
}

.section-subheader h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subheader h3 i {
    color: #0077B6;
}


.form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.form-card:hover {
    border-color: #0077B6;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.form-info h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.form-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.form-type {
    font-size: 14px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

.form-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.form-status.status-draft {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.form-status.status-pending_email,
.form-status.status-pending_vet {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #3b82f6;
}

.form-status.status-submitted {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #3b82f6;
}

.form-status.status-completed {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-date {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.shared-info {
    font-size: 12px;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.shared-info i {
    font-size: 10px;
}

.no-forms-message {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-forms-message i {
    color: #9ca3af;
    margin-bottom: 16px;
}

.no-forms-message h3 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

.no-forms-message p {
    margin: 0;
    font-size: 14px;
}

/* Form Details Modal Styles */
.form-details-modal {
    max-width: 600px;
    width: 90%;
}

.form-meta-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-meta-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.form-meta-info p:last-child {
    margin-bottom: 0;
}

.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.form-data-section h4 {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.form-data-content {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.form-data-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-data-item:last-child {
    margin-bottom: 0;
}

.form-data-item label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
    margin-right: 12px;
}

.form-data-item span {
    color: #6b7280;
    flex: 1;
}

.no-data {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Mobile responsive for forms */
@media (max-width: 768px) {
    .forms-section {
        margin: 16px 0;
        padding: 16px;
    }
    
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-actions {
        align-items: flex-start;
        width: 100%;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .form-data-item {
        flex-direction: column;
    }
    
    .form-data-item label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 4px;
    }
}

/* Streamlined Document Camera Modal */
.document-camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.document-camera-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    max-height: 90vh;
    width: 500px;
    overflow: hidden;
}

.document-camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.document-camera-header h3 {
    margin: 0;
    color: #2c2c2c;
    font-size: 18px;
    font-weight: 600;
}

.document-camera-header .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.document-camera-header .close-modal:hover {
    background: #e9ecef;
}

.document-camera-content {
    padding: 0;
}

.camera-interface .camera-view-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000;
}

#documentCameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

#documentCaptureBtn {
    background: #0077B6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

#documentCaptureBtn:hover {
    background: #005a87;
}

#documentCancelBtn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#documentCancelBtn:hover {
    background: #4b5563;
}

/* Mobile optimizations for document camera */
@media (max-width: 768px) {
    .document-camera-container {
        width: 95vw;
        height: 90vh;
        border-radius: 8px;
    }
    
    .camera-interface .camera-view-container {
        height: 60vh;
    }
    
    .camera-controls {
        padding: 16px;
        gap: 12px;
    }
    
    #documentCaptureBtn,
    #documentCancelBtn {
        padding: 14px 20px;
        font-size: 16px;
        flex: 1;
    }
}

/* Appointment Booking Modal */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appointment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.appointment-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.appointment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.appointment-modal-header h3 {
    margin: 0;
    color: #2c2c2c;
    font-size: 20px;
    font-weight: 600;
}

.appointment-modal-header .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.appointment-modal-header .close-modal:hover {
    background: #e9ecef;
}

.appointment-modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appointment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appointment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.appointment-form label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.appointment-form input[required],
.appointment-form select[required] {
    border-left: 4px solid #0077B6;
}

.appointment-form textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.appointment-form input[type="date"],
.appointment-form input[type="time"] {
    cursor: pointer;
}

.appointment-form input[type="number"] {
    text-align: right;
}

.appointment-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.appointment-modal-footer .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.appointment-modal-footer .btn-outline {
    background: #ffffff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.appointment-modal-footer .btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.appointment-modal-footer .btn-primary {
    background: #0077B6;
    color: #ffffff;
    border: 2px solid #0077B6;
}

.appointment-modal-footer .btn-primary:hover:not(:disabled) {
    background: #005a87;
    border-color: #005a87;
}

.appointment-modal-footer .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form validation styles */
.appointment-form input:invalid,
.appointment-form select:invalid {
    border-color: #ef4444;
}

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

/* Mobile responsive for appointment modal */
@media (max-width: 768px) {
    .appointment-modal-container {
        width: 95vw;
        height: 95vh;
        border-radius: 8px;
        margin: 10px;
    }
    
    .appointment-modal-header {
        padding: 16px 20px;
    }
    
    .appointment-modal-header h3 {
        font-size: 18px;
    }
    
    .appointment-modal-content {
        padding: 20px;
    }
    
    .appointment-form .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .appointment-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .appointment-modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .appointment-form input,
    .appointment-form select,
    .appointment-form textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ======================================
   SUBSCRIPTION & PRICING STYLES
   ====================================== */

/* Subscription Container */
.subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.subscription-header {
    text-align: center;
    margin-bottom: 30px;
}

.subscription-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark-blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.subscription-header h2 i {
    color: var(--secondary-blue-chien);
}

/* Trial Info Banner */
.trial-info-banner {
    background: linear-gradient(135deg, var(--beige) 0%, #fff9ed 100%);
    border: 2px solid var(--warning);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: start;
    gap: 20px;
}

.trial-icon {
    font-size: 48px;
    color: var(--warning);
    flex-shrink: 0;
}

.trial-content h3 {
    color: var(--text-dark-blue);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.trial-content p {
    color: var(--text-dark);
    margin: 0 0 12px 0;
    font-size: 16px;
}

.trial-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trial-content ul li {
    color: var(--text-dark);
    font-size: 14px;
    padding: 4px 0;
}

/* Current Plan Card */
.current-plan-card .card-body {
    padding: 30px;
}

.current-plan-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.plan-badge {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(135deg, var(--secondary-blue-chien) 0%, var(--secondary-blue-chat) 100%);
}

.plan-badge.premium {
    background: linear-gradient(135deg, var(--warning) 0%, #fbbf24 100%);
    color: var(--text-dark-blue);
}

.plan-badge.basic {
    background: linear-gradient(135deg, var(--secondary-blue-chat) 0%, var(--primary-blue) 100%);
}

.plan-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
}

.detail-value {
    font-weight: 700;
    color: var(--text-dark-blue);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.pricing-card.current-plan {
    border-color: var(--secondary-blue-chien);
    background: linear-gradient(135deg, rgba(170, 220, 245, 0.08) 0%, rgba(118, 184, 225, 0.12) 100%);
    box-shadow: 0 4px 16px rgba(79, 164, 214, 0.15);
}

.pricing-card.premium {
    border-color: var(--warning);
}

.pricing-card.free {
    border-color: var(--text-light);
}

.pricing-card-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pricing-card-header h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark-blue);
    text-transform: uppercase;
}

.current-badge {
    background: var(--secondary-blue-chien);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card-price {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--beige);
}

.pricing-card-price .price {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark-blue);
    line-height: 1;
}

.pricing-card-price .price-period {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.pricing-card-features {
    flex: 1;
    margin-bottom: 24px;
}

.pricing-card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card-features li {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 14px;
}

.pricing-card-features li.available {
    color: var(--text-dark);
}

.pricing-card-features li.unavailable {
    color: var(--text-light);
    opacity: 0.6;
}

.pricing-card-features li i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-card-features li.available i {
    color: var(--success);
}

.pricing-card-features li.unavailable i {
    color: var(--alert);
}

.pricing-card-action .btn {
    width: 100%;
}

.btn-upgrade {
    background: var(--secondary-blue-chien);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upgrade:hover {
    background: var(--secondary-blue-chat);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 164, 214, 0.3);
}

.premium-extra-info {
    margin-top: 20px;
    padding: 16px;
    background: var(--beige);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 14px;
}

.premium-extra-info i {
    color: var(--info);
    font-size: 18px;
}

/* Features Comparison Table */
.comparison-table-container {
    overflow-x: auto;
    margin-top: 24px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--beige);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table thead th {
    background: var(--green-background);
    font-weight: 700;
    color: var(--text-dark-blue);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.comparison-table tbody tr:hover {
    background: rgba(170, 220, 245, 0.05);
}

.comparison-table .feature-label {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-table .current-plan-col {
    background: rgba(170, 220, 245, 0.15);
    font-weight: 600;
}

.comparison-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--beige);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 13px;
}

.comparison-note i {
    color: var(--info);
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .subscription-container {
        padding: 16px;
    }

    .subscription-header h2 {
        font-size: 24px;
    }
    
    .trial-info-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .trial-icon {
        font-size: 36px;
    }

    .current-plan-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 20px;
    }
    
    .pricing-card-price .price {
        font-size: 36px;
    }

    .comparison-table {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
    
    .premium-extra-info {
        font-size: 13px;
    }
    
    .comparison-note {
        font-size: 12px;
    }
}

/* ======================================
   PROFILE SETTINGS STYLES
   ====================================== */

/* Profile Settings Container */
.profile-settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-header h2 {
    color: #2C2C2C;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.profile-header h2 i {
    color: #0077B6;
}

.profile-header .text-muted {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* Premium Trial Badge */
.premium-trial-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.trial-badge-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trial-badge-content i {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.trial-badge-text {
    display: flex;
    flex-direction: column;
}

.trial-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.trial-days {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Dashboard Trial Banner - Subtle indicator */
.dashboard-trial-banner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 8px;
    padding: 10px 16px;
    margin: 0 15px 15px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.25);
}

.dashboard-trial-banner i {
    font-size: 18px;
    color: #fff;
}

.trial-banner-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Settings Cards */
.settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.settings-card .card-header {
    background: linear-gradient(135deg, #0077B6 0%, #005a8b 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

.settings-card .card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card .card-header h3 i {
    font-size: 16px;
}

.settings-card .card-header.expandable-header {
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-card .card-header.expandable-header:hover {
    background: linear-gradient(135deg, #005a8b 0%, #004666 100%);
}

.settings-card .card-header.expandable-header .toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.settings-card .card-body {
    padding: 24px;
}

/* Profile Forms */
.profile-form {
    max-width: 100%;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form .form-group.col-md-6 {
    margin-bottom: 0;
}

.profile-form label {
    display: block;
    margin-bottom: 6px;
    color: #2C2C2C;
    font-weight: 500;
    font-size: 14px;
}

.profile-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    color: #2C2C2C;
    box-sizing: border-box;
}

.profile-form .form-control:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.profile-form .form-control:read-only:not(select) {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Ensure select elements are always editable and styled correctly */
.profile-form select.form-control,
.profile-form select.form-control:read-only {
    background-color: white !important;
    cursor: pointer !important;
    appearance: auto !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    color: #2C2C2C !important;
}

.profile-form .form-text {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.profile-form .text-muted {
    color: #6c757d;
}

/* Profile Form Buttons */
.profile-form .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.profile-form .btn-primary {
    background: linear-gradient(135deg, #0077B6 0%, #005a8b 100%);
    color: white;
}

.profile-form .btn-primary:hover {
    background: linear-gradient(135deg, #005a8b 0%, #004570 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.profile-form .btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.profile-form .btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.profile-form .btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.profile-form .btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

/* Plan Information */
.plan-info {
    background: #FDF6ED;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #f4e4c1;
}

.current-plan {
    margin-bottom: 20px;
}

.current-plan h4 {
    margin: 0 0 12px 0;
    color: #2C2C2C;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.free {
    background: #e9ecef;
    color: #495057;
}

.plan-badge.basic {
    background: linear-gradient(135deg, #2AA876 0%, #229962 100%);
    color: white;
}

.plan-badge.premium {
    background: linear-gradient(135deg, #0077B6 0%, #005a8b 100%);
    color: white;
}

.plan-badge.professional {
    background: linear-gradient(135deg, #8e44ad 0%, #732d91 100%);
    color: white;
}

.current-plan p {
    margin: 6px 0;
    color: #2C2C2C;
    font-size: 14px;
}

/* Usage Statistics */
.usage-stats h5 {
    margin: 0 0 16px 0;
    color: #2C2C2C;
    font-size: 16px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}


.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #0077B6;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Plan Usage Section */
.plan-usage-section {
    padding: 8px 0;
}

.plan-usage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.plan-usage-item .usage-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0077B6 0%, #00a8e8 100%);
    border-radius: 10px;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.plan-usage-item .usage-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plan-usage-item .usage-label {
    font-size: 14px;
    color: #2C2C2C;
    font-weight: 500;
}

.plan-usage-item .usage-value {
    font-size: 18px;
    font-weight: 700;
    color: #0077B6;
}

.plan-usage-item .usage-bar {
    width: 80px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.plan-usage-item .usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2AA876 0%, #33cc99 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.plan-usage-divider {
    height: 1px;
    background: #e9ecef;
    margin: 16px 0;
}

.sharing-title {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-usage-item.sharing-item .usage-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    background: linear-gradient(135deg, #6c757d 0%, #8a9299 100%);
}

.plan-usage-item.sharing-item {
    padding: 8px 0;
}

.plan-usage-item.sharing-item .usage-value {
    font-size: 16px;
}

@media (max-width: 480px) {
    .plan-usage-item .usage-bar {
        width: 60px;
    }
    
    .plan-usage-item .usage-value {
        font-size: 16px;
    }
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #e74c3c !important;
}

.danger-zone .card-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.danger-actions h5 {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.danger-actions p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-settings-container {
        padding: 16px;
    }

    .profile-header h2 {
        font-size: 24px;
    }

    .settings-card .card-header {
        padding: 16px 20px;
    }

    .settings-card .card-body {
        padding: 20px;
    }

    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }


    .stat-number {
        font-size: 20px;
    }

    .profile-form .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .profile-header h2 {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }

    .settings-card .card-header h3 {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
}

/* Edit Document Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
}

.edit-document-modal {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

.edit-document-modal .modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.edit-document-modal .modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: #374151;
    background-color: #f1f5f9;
}

.edit-document-modal .modal-body {
    padding: 30px;
}

.edit-document-modal .form-group {
    margin-bottom: 20px;
}

.edit-document-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.edit-document-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.edit-document-modal input[type="text"],
.edit-document-modal input[type="date"],
.edit-document-modal select,
.edit-document-modal textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.edit-document-modal input[type="text"]:focus,
.edit-document-modal input[type="date"]:focus,
.edit-document-modal select:focus,
.edit-document-modal textarea:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.edit-document-modal textarea {
    resize: vertical;
    min-height: 100px;
}

.edit-document-modal .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.edit-document-modal .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-document-modal .btn-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #d1d5db;
}

.edit-document-modal .btn-secondary:hover {
    background-color: #e2e8f0;
    color: #475569;
}

.edit-document-modal .btn-primary {
    background-color: #0077B6;
    color: white;
}

.edit-document-modal .btn-primary:hover {
    background-color: #005a8a;
}

.edit-document-modal .btn-primary:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .edit-document-modal {
        width: 95%;
        max-width: none;
        margin: 0;
    }
    
    .edit-document-modal .modal-header,
    .edit-document-modal .modal-body,
    .edit-document-modal .modal-footer {
        padding: 20px;
    }
    
    .edit-document-modal .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .edit-document-modal .modal-footer {
        flex-direction: column;
    }
    
    .edit-document-modal .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Document Filters - Collapsible Styles */
.documents-filters {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.filters-header:hover {
    background: #e9ecef;
}

.filters-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-icon {
    color: #6c757d;
    font-size: 14px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.filters-header:hover .toggle-icon {
    color: #2c3e50;
}

.filters-content {
    padding: 0;
    transition: all 0.3s ease;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: unset;
        width: 100%;
    }
    
    .filters-header {
        padding: 14px 16px;
    }
    
    .filters-header h3 {
        font-size: 15px;
    }
}

/* Collapsible Document Containers */
.document-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.document-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.document-container.pending-vet-visit {
    border-color: #dc3545;
    border-width: 2px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.document-container.pending-vet-visit:hover {
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.25);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.document-header:hover {
    background: #e9ecef;
}

.document-container.pending-vet-visit .document-header {
    background: #fff5f5;
    border-bottom-color: #fecaca;
}

.document-container.pending-vet-visit .document-header:hover {
    background: #fef2f2;
}

.document-summary h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6c757d;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.document-meta i {
    width: 14px;
    text-align: center;
}

.pending-indicator {
    color: #dc3545 !important;
    font-weight: 600;
}

.toggle-icon {
    color: #6c757d;
    font-size: 16px;
    transition: transform 0.3s ease, color 0.2s ease;
}

.document-header:hover .toggle-icon {
    color: #2c3e50;
}

.document-container.expanded .toggle-icon {
    transform: rotate(180deg);
}

.document-content {
    padding: 0;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.document-details {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.summary-section {
    margin-bottom: 16px;
}

.summary-section h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.summary-section p {
    margin: 0;
    line-height: 1.6;
    color: #495057;
    white-space: pre-wrap;
}

.document-details p {
    margin: 8px 0;
    color: #495057;
}

.document-details strong {
    color: #2c3e50;
}

.document-actions {
    padding: 16px 20px;
    background: #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pending-vet-message {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.pending-vet-message p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.shared-info {
    width: 100%;
    margin-top: 12px;
    color: #6c757d;
}

/* Mobile responsive for document containers */
@media (max-width: 768px) {
    .document-header {
        padding: 14px 16px;
    }
    
    .document-summary h4 {
        font-size: 16px;
    }
    
    .document-meta {
        gap: 12px;
        font-size: 13px;
    }
    
    .document-details,
    .document-actions {
        padding: 16px;
    }
    
    .document-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .document-actions .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
    
    .document-actions .btn:last-child {
        margin-bottom: 0;
    }
}


/* ============================================
   AI Content Markdown Styling
   ============================================ */

.ai-content {
    line-height: 1.6;
}

.ai-content h1,
.ai-content h2,
.ai-content h3,
.ai-content h4,
.ai-content h5,
.ai-content h6 {
    margin-top: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2C2C2C;
}

.ai-content h1 { font-size: 1.8em; }
.ai-content h2 { font-size: 1.5em; }
.ai-content h3 { font-size: 1.3em; }
.ai-content h4 { font-size: 1.1em; }
.ai-content h5 { font-size: 1em; }
.ai-content h6 { font-size: 0.9em; }

.ai-content p {
    margin-bottom: 12px;
}

.ai-content strong,
.ai-content b {
    font-weight: 600;
    color: #000000;
}

.ai-content em,
.ai-content i {
    font-style: italic;
}

.ai-content ul,
.ai-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.ai-content ul {
    list-style-type: disc;
}

.ai-content ol {
    list-style-type: decimal;
}

.ai-content li {
    margin-bottom: 6px;
}

.ai-content li > ul,
.ai-content li > ol {
    margin-top: 6px;
    margin-bottom: 6px;
}

.ai-content code {
    background-color: #F5F5F5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #d63384;
}

.ai-content pre {
    background-color: #F5F5F5;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 12px 0;
    border: 1px solid #e0e0e0;
}

.ai-content pre code {
    background-color: transparent;
    padding: 0;
    color: #2C2C2C;
}

.ai-content blockquote {
    border-left: 4px solid #0077B6;
    padding-left: 16px;
    margin: 12px 0;
    color: #555;
    font-style: italic;
}

.ai-content a {
    color: #0077B6;
    text-decoration: underline;
}

.ai-content a:hover {
    color: #005a8a;
}

.ai-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

.ai-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
}

.ai-content table th,
.ai-content table td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}

.ai-content table th {
    background-color: #F5F5F5;
    font-weight: 600;
}

.ai-content table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Ensure first element doesn't have top margin */
.ai-content > *:first-child {
    margin-top: 0;
}

/* Ensure last element doesn't have bottom margin */
.ai-content > *:last-child {
    margin-bottom: 0;
}

/* ============================================
   SUPPORT SECTION STYLES
   ============================================ */

.support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.support-header {
    text-align: center;
    margin-bottom: 40px;
}

.support-header h1 {
    color: #2C2C2C;
    margin-bottom: 10px;
}

.support-header h1 i {
    color: #0077B6;
    margin-right: 10px;
}

.support-header p {
    color: #666;
    font-size: 1.1em;
}

.support-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.support-section h2 {
    color: #2C2C2C;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.support-section h2 i {
    color: #0077B6;
    margin-right: 12px;
}

/* Contact Options */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-card {
    background: #FDF6ED;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #0077B6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-icon i {
    color: white;
    font-size: 24px;
}

.contact-card h3 {
    color: #2C2C2C;
    margin-bottom: 10px;
}

.contact-card p {
    color: #666;
    margin-bottom: 20px;
}

.contact-card .btn {
    width: 100%;
}

.contact-card a.btn {
    text-decoration: none;
}

/* Disabled Contact Card (Coming Soon) */
.contact-card-disabled {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
    background: #f0f0f0;
}

.contact-card-disabled:hover {
    transform: none;
    box-shadow: none;
}

.contact-card-disabled .contact-icon {
    background: #999;
}

.contact-card-disabled .btn {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FF9800;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FAQ Section */
.faq-container {
    margin-top: 20px;
}

.faq-item {
    background: #F5F5F5;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #e8e8e8;
}

.faq-question.active {
    background-color: #0077B6;
}

.faq-question.active h4 {
    color: white;
}

.faq-question.active .faq-icon {
    color: white;
}

.faq-question h4 {
    margin: 0;
    color: #2C2C2C;
    font-size: 1.05em;
    font-weight: 500;
    flex: 1;
}

.faq-icon {
    color: #0077B6;
    font-size: 18px;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-answer {
    padding: 0 20px 20px;
    color: #2C2C2C;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* Quick Help Grid */
.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quick-help-card {
    background: linear-gradient(135deg, #0077B6 0%, #005a8a 100%);
    color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-help-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 119, 182, 0.3);
}

.quick-help-card i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.quick-help-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.quick-help-card p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Account Info Card */
.account-info-card {
    background: #F5F5F5;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.account-info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #2C2C2C;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .support-container {
        padding: 15px;
    }
    
    .support-section {
        padding: 20px 15px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .quick-help-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question h4 {
        font-size: 0.95em;
    }
    
    .account-info-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* ============================================
   INVITE FRIEND MODAL STYLES
   ============================================ */

.invite-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.invite-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.invite-modal .modal-header {
    background: linear-gradient(135deg, #0077B6 0%, #005a8a 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invite-modal .modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
}

.invite-modal .modal-header h3 i {
    margin-right: 10px;
}

.invite-modal .modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.invite-modal .modal-header .close:hover {
    opacity: 0.7;
}

.invite-modal .modal-body {
    padding: 25px;
}

.invite-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Referral Link Section */
.referral-link-section {
    margin-bottom: 30px;
}

.referral-link-section label {
    display: block;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 10px;
}

.link-copy-group {
    display: flex;
    gap: 10px;
}

.referral-link-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #F5F5F5;
    color: #2C2C2C;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.link-copy-group .btn {
    white-space: nowrap;
}

/* Share Options Section */
.share-options-section {
    margin-top: 30px;
}

.share-options-section h4 {
    color: #2C2C2C;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    color: white;
}

.share-btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Share Button Colors */
.email-btn {
    background: linear-gradient(135deg, #EA4335 0%, #c93528 100%);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2 0%, #1461c7 100%);
}

.twitter-btn {
    background: linear-gradient(135deg, #1DA1F2 0%, #1a8cd8 100%);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088CC 0%, #0077b3 100%);
}

.more-btn {
    background: linear-gradient(135deg, #6C757D 0%, #5a6268 100%);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .invite-modal-content {
        width: 95%;
    }

    .invite-modal .modal-body {
        padding: 20px 15px;
    }

    .share-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-copy-group {
        flex-direction: column;
    }

    .link-copy-group .btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .share-buttons-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRIVACY & LEGAL SECTION STYLES
   ============================================ */

.privacy-legal-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.legal-disclaimer {
    padding: 20px;
    background: #F5F5F5;
    border-radius: 8px;
    margin-bottom: 15px;
}

.legal-disclaimer .legal-text {
    margin: 0 0 15px 0;
    color: #2C2C2C;
    font-size: 0.95em;
    line-height: 1.6;
}

.legal-disclaimer .legal-text:last-child {
    margin-bottom: 0;
}

.legal-disclaimer a {
    color: #0077B6;
    text-decoration: underline;
    font-weight: 500;
}

.legal-disclaimer a:hover {
    color: #005a8c;
}

.legal-links {
    margin-bottom: 20px;
}

.legal-link-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #F5F5F5;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.legal-link-item:hover {
    background: #e8e8e8;
}

.legal-link-item i {
    font-size: 32px;
    color: #0077B6;
    margin-top: 5px;
}

.legal-link-item .link-content {
    flex: 1;
}

.legal-link-item h6 {
    margin: 0 0 8px 0;
    color: #2C2C2C;
    font-size: 1.1em;
}

.legal-link-item p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 0.95em;
}

.legal-link-item .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* GDPR Consents */
.gdpr-consents {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.gdpr-consents h5 {
    color: #2C2C2C;
    margin-bottom: 10px;
}

.consent-item {
    background: #FDF6ED;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.consent-header {
    margin-bottom: 8px;
}

.consent-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.consent-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.consent-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.consent-description {
    margin: 0;
    padding-left: 28px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Notification Settings */
.notification-settings {
    margin-top: 10px;
}

.notification-item {
    background: #FDF6ED;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.notification-header {
    margin-bottom: 8px;
}

.notification-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.notification-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.notification-description {
    margin: 0 0 10px 0;
    padding-left: 28px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.notification-options {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 28px;
    font-size: 0.9em;
    color: #444;
}

.notification-options select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    font-size: 0.9em;
    cursor: pointer;
}

.notification-options select:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

@media (max-width: 768px) {
    .notification-options {
        flex-wrap: wrap;
        padding-left: 0;
        margin-top: 8px;
    }
    
    .notification-description {
        padding-left: 0;
        margin-top: 8px;
    }
}

/* Data Rights */
.data-rights {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.data-rights h5 {
    color: #2C2C2C;
    margin-bottom: 10px;
}

.rights-list {
    background: #F5F5F5;
    padding: 20px 20px 20px 45px;
    border-radius: 8px;
    margin: 15px 0 20px 0;
}

.rights-list li {
    margin-bottom: 12px;
    color: #2C2C2C;
    line-height: 1.6;
}

.rights-list li:last-child {
    margin-bottom: 0;
}

.rights-list strong {
    color: #0077B6;
}

/* Button spacing */
.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Outline button variant */
.btn-outline-primary {
    background: white;
    color: #0077B6;
    border: 2px solid #0077B6;
}

.btn-outline-primary:hover {
    background: #0077B6;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-link-item {
        flex-direction: column;
        gap: 15px;
    }

    .legal-link-item i {
        font-size: 28px;
    }

    .rights-list {
        padding: 15px 15px 15px 35px;
    }

    .consent-description {
        padding-left: 0;
        margin-top: 8px;
    }

    .consent-label {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* ===== Insurance Document Management Styles ===== */

/* Documents Card */
.insurance-documents-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E0E0E0;
}

.insurance-documents-header {
    margin-bottom: 20px;
}

.insurance-documents-header h4 {
    margin: 0;
    color: #2C2C2C;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insurance-documents-header h4 i {
    color: #0077B6;
}

/* Upload Zone */
.insurance-upload-zone {
    border: 2px dashed #2AA876;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #FDF6ED;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.insurance-upload-zone:hover {
    border-color: #0077B6;
    background: #E3F2FD;
}

.upload-zone-content i {
    font-size: 36px;
    color: #2AA876;
    margin-bottom: 15px;
}

.upload-zone-content p {
    margin: 10px 0 5px 0;
    color: #2C2C2C;
}

.upload-zone-content small {
    color: #757575;
    font-size: 13px;
}

/* AI Analysis Progress Indicator */
.insurance-analysis-progress {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border: 2px solid #0077B6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.progress-header i {
    font-size: 32px;
    color: #0077B6;
}

.progress-header h4 {
    margin: 0 0 5px 0;
    color: #0077B6;
    font-size: 16px;
    font-weight: 600;
}

.progress-header p {
    margin: 0;
    color: #1565C0;
    font-size: 14px;
}

.progress-bar-container {
    background: #FFFFFF;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    background: linear-gradient(90deg, #0077B6 0%, #2AA876 100%);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 8px;
}

.progress-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.progress-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1565C0;
    font-size: 13px;
    font-weight: 500;
}

.progress-stats i {
    color: #0077B6;
}

/* Documents Gallery */
.insurance-documents-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.loading-message, .no-documents-message, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #757575;
}

.no-documents-message i {
    font-size: 48px;
    color: #E0E0E0;
    margin-bottom: 15px;
    display: block;
}

/* Document Card */
.insurance-document-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.insurance-document-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.doc-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.doc-card-header > i {
    font-size: 24px;
    color: #0077B6;
    flex-shrink: 0;
}

.doc-card-info {
    flex: 1;
    min-width: 0;
}

.doc-filename {
    font-weight: 600;
    color: #2C2C2C;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-date {
    font-size: 12px;
    color: #757575;
    margin-top: 2px;
}

/* Status Badges */
.doc-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-pending {
    background: #FFF3CD;
    color: #856404;
}

.status-analyzing {
    background: #E3F2FD;
    color: #1976D2;
}

.status-completed {
    background: #D4EDDA;
    color: #155724;
}

.status-failed {
    background: #F8D7DA;
    color: #721C24;
}

/* Document Info Pills */
.doc-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 24px;
}

.doc-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F5F5F5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #2C2C2C;
}

.doc-info-pill i {
    color: #0077B6;
    font-size: 10px;
}

/* Document Actions */
.doc-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-action-btn {
    flex: 1;
    min-width: fit-content;
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    background: #FFFFFF;
    color: #2C2C2C;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.doc-action-btn:hover:not(:disabled) {
    background: #F5F5F5;
    border-color: #0077B6;
}

.doc-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.doc-action-btn.btn-primary {
    background: #0077B6;
    color: #FFFFFF;
    border-color: #0077B6;
}

.doc-action-btn.btn-primary:hover {
    background: #005F8C;
}

.doc-action-btn.btn-danger {
    color: #DC3545;
}

.doc-action-btn.btn-danger:hover {
    background: #DC3545;
    color: #FFFFFF;
    border-color: #DC3545;
}

/* Applied Banner */
.insurance-applied-banner {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #D4EDDA;
    border: 1px solid #C3E6CB;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #155724;
}

.insurance-applied-banner i {
    color: #28A745;
}

.insurance-applied-banner span {
    flex: 1;
}

.insurance-applied-banner .btn-link {
    background: none;
    border: none;
    color: #0077B6;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
}

/* Insurance Summary Modal */
.insurance-summary-modal .modal-content {
    max-width: 600px;
}

/* Reminder Modal - Enable scrolling */
.reminder-modal {
    max-width: 550px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.reminder-modal .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(85vh - 140px); /* Account for header and footer */
}

.reminder-modal .modal-footer {
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.summary-doc-info {
    background: #F5F5F5;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2C2C2C;
}

.summary-field {
    margin-bottom: 20px;
}

.summary-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-field label i {
    color: #0077B6;
}

.summary-value {
    background: #F5F5F5;
    padding: 12px 15px;
    border-radius: 6px;
    color: #2C2C2C;
    font-size: 14px;
    line-height: 1.6;
    min-height: 45px;
}

.summary-intro {
    background: #E3F2FD;
    border-left: 4px solid #0077B6;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.summary-intro p {
    margin: 0;
    color: #1565C0;
    font-size: 14px;
    line-height: 1.6;
}

.summary-intro i {
    color: #0077B6;
    margin-right: 6px;
}

.document-summary-card {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.document-summary-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F0F0;
}

.doc-summary-header i {
    font-size: 24px;
    color: #0077B6;
}

.doc-summary-header strong {
    font-size: 15px;
    color: #2C2C2C;
    display: block;
}

.doc-summary-date {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.doc-summary-content {
    color: #2C2C2C;
    font-size: 14px;
    line-height: 1.8;
    background: #FAFAFA;
    padding: 15px;
    border-radius: 6px;
}

/* Mobile Responsive for Insurance Documents */
@media (max-width: 768px) {
    .insurance-documents-gallery {
        grid-template-columns: 1fr;
    }
    
    .insurance-upload-zone {
        padding: 20px;
    }
    
    .upload-zone-content i {
        font-size: 28px;
    }
    
    .doc-card-actions {
        flex-direction: column;
    }
    
    .doc-action-btn {
        flex: none;
        width: 100%;
    }
}

/* Coverage Split Styling */
.coverage-split {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.coverage-section {
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
}

.coverage-section strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.coverage-section .display-value {
    margin-top: 8px;
    padding: 0;
    background: transparent;
}

.coverage-split-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.coverage-split-form .form-group {
    margin-bottom: 0;
}

.coverage-split-form label {
    font-weight: 600;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .coverage-split-form {
        grid-template-columns: 1fr;
    }
}

/* =================== Conversation History Sidebar (ChatGPT Style) =================== */

/* Pet AI section should fill viewport */
#ai-assistant-section {
    min-height: calc(100vh - 80px); /* Minimum height, can grow */
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

#ai-assistant-section .section-header {
    flex-shrink: 0;
    padding: 20px 20px 10px 20px;
}

.ai-chat-container {
    display: flex;
    flex: 1;
    min-height: 0; /* Important for flex child to scroll properly */
    background: white;
    border-radius: 12px;
    margin: 0 20px 20px 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.conversation-sidebar {
    width: 260px;
    background: #f7f7f8;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.conversation-sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e5e5e5;
    color: #2c2c2c;
}

.conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.conversation-item {
    padding: 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.conversation-item:hover {
    background: #ececec;
}

.conversation-item.active {
    background: #e5e5e5;
}

.conversation-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item-date {
    font-size: 11px;
    color: #999;
}

.conversation-item-actions {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.conversation-item:hover .conversation-item-actions {
    display: block;
}

.conversation-loading,
.conversation-empty {
    text-align: center;
    padding: 32px 16px;
    color: #999;
    font-size: 14px;
}

.chat-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0; /* Critical: allows flex child to scroll */
    overflow: hidden; /* Ensures scrolling happens in child */
}

.chat-messages {
    flex: 1;
    overflow-y: auto !important; /* Force scrolling */
    overflow-x: hidden;
    padding: 24px;
    scroll-behavior: smooth;
    min-height: 0; /* Critical: allows this flex child to scroll */
    max-height: 100%; /* Constrain to parent height */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

.chat-input-container {
    border-top: 1px solid #e5e5e5;
    padding: 16px;
    background: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #ai-assistant-section {
        min-height: calc(100vh - 60px); /* Minimum height, but can grow */
        display: flex;
        flex-direction: column;
        padding-bottom: 80px; /* Space for bottom nav */
    }
    
    .ai-chat-container {
        display: flex;
        flex-direction: column;
        margin: 0 10px 0 10px;
    }
    
    .conversation-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        transition: height 0.3s ease;
        flex-shrink: 0;
    }
    
    .conversation-sidebar.collapsed {
        height: 48px; /* Just show the header with toggle button */
        width: 100%;
    }
    
    .conversation-sidebar.collapsed .conversation-list {
        display: none;
    }
    
    .conversation-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
    }
    
    .conversation-item {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    /* Mobile: NO internal scrolling - page scrolls naturally */
    .chat-main-area {
        display: flex;
        flex-direction: column;
    }
    
    .chat-messages {
        padding: 24px;
        padding-bottom: 40px;
    }
    
    .chat-input-container {
        background: white;
        border-top: 1px solid #e5e5e5;
        padding: 12px 16px;
        margin-bottom: 20px;
    }
    
    /* Mobile: Fix chat input buttons - smaller and properly rounded */
    .chat-input-container .input-group {
        gap: 8px;
    }
    
    .chat-input-container .input-group input {
        flex: 1;
        min-width: 0;
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .chat-input-container .input-group button {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        flex: 0 0 36px;
        aspect-ratio: 1;
        border-radius: 50%;
        margin-left: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .chat-input-container .input-group button i {
        font-size: 14px;
    }
    
    .chat-input-container .input-info {
        margin-top: 6px;
    }
    
    .chat-input-container .input-info small {
        font-size: 11px;
    }
}

/* ============================================
   AI ASSISTANT HISTORY TOOLTIP
   ============================================ */

.history-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-top: 8px;
    animation: tooltipFadeIn 0.3s ease-out;
}

.history-tooltip .tooltip-content {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(74, 144, 217, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 280px;
}

.history-tooltip .tooltip-icon {
    font-size: 20px;
    color: #ffd700;
    flex-shrink: 0;
}

.history-tooltip .tooltip-text {
    flex: 1;
}

.history-tooltip .tooltip-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.history-tooltip .tooltip-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
}

.history-tooltip .tooltip-dismiss {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.history-tooltip .tooltip-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

.history-tooltip .tooltip-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #4a90d9;
}

.history-tooltip.fade-out {
    animation: tooltipFadeOut 0.3s ease-out forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tooltipFadeOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Mobile adjustments for tooltip */
@media (max-width: 768px) {
    .history-tooltip {
        left: 16px;
        right: 16px;
        transform: none;
        width: auto;
    }
    
    .history-tooltip .tooltip-content {
        max-width: none;
    }
    
    .history-tooltip .tooltip-arrow {
        left: 50px;
        transform: none;
    }
}

/* ============================================
   ARCHIVE PET FUNCTIONALITY STYLES
   ============================================ */

/* Archive Pet Button (Red styling) */
.archive-pet-section {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
}

.btn-archive {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-archive:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-archive i {
    font-size: 18px;
}

/* Pets Header Buttons */
.pets-header-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Archived Pets Section */
.archived-pets-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
}

.archived-pets-title {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archived-pets-title i {
    color: #999;
}

/* Archived Pets Simple List */
.archived-pets-simple-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archived-pet-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.archived-pet-list-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.archived-pet-list-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.archived-pet-list-photo.placeholder {
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.archived-pet-list-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.archived-pet-list-details strong {
    font-size: 16px;
    color: #333;
}

.archived-pet-list-details span {
    font-size: 14px;
    color: #666;
}

/* Archived Pet Actions Container */
.archived-pet-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-restore {
    background: #0077B6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-restore:hover {
    background: #005f8d;
    transform: translateY(-1px);
}

.btn-delete-archived {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-delete-archived:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Restore Pet Modal */
.restore-pet-modal-content {
    padding: 20px;
}

.restore-pet-modal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.restore-pet-modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.archived-pets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.archived-pet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.archived-pet-item:hover {
    background: #e9ecef;
    border-color: #0077B6;
}

.archived-pet-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.archived-pet-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.archived-pet-photo.placeholder {
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
}

.archived-pet-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.archived-pet-details strong {
    font-size: 16px;
    color: #333;
}

.archived-pet-meta {
    font-size: 14px;
    color: #666;
}

/* Small button variant */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pets-header-buttons {
        width: 100%;
    }
    
    .pets-header-buttons .btn {
        flex: 1;
        justify-content: center;
    }
    
    .archived-pet-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .archived-pet-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .archived-pet-list-item .btn-restore,
    .archived-pet-list-item .btn-delete-archived {
        width: 100%;
        justify-content: center;
    }
    
    .archived-pet-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .archived-pet-item .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   CLEAN REMINDER CARDS - Minimal Design
   ============================================ */

.reminder-card-clean {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.reminder-card-clean:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Status border colors */
.reminder-card-clean.overdue {
    border-left-color: #ef4444;
}

.reminder-card-clean.due-today {
    border-left-color: #f59e0b;
}

.reminder-card-clean.upcoming {
    border-left-color: #0077B6;
}

.reminder-card-clean.completed {
    border-left-color: #22c55e;
    opacity: 0.7;
}

/* Card header */
.card-clean-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-clean-pet {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-clean-pet-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f4f6;
}

.card-clean-pet-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.card-clean-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card-clean-status.overdue {
    background: #fef2f2;
    color: #dc2626;
}

.card-clean-status.due-today {
    background: #fffbeb;
    color: #d97706;
}

/* Overflow menu */
.card-clean-menu {
    position: relative;
    padding: 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.card-clean-menu:hover {
    color: #374151;
}

.card-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.card-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.card-menu-dropdown .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s;
}

.card-menu-dropdown .menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.card-menu-dropdown .menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.card-menu-dropdown .menu-item:hover {
    background: #f3f4f6;
}

.card-menu-dropdown .menu-item-danger {
    color: #dc2626;
}

.card-menu-dropdown .menu-item-danger:hover {
    background: #fef2f2;
}

/* Card body */
.card-clean-body {
    margin-bottom: 12px;
}

.card-clean-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-clean-recurring-icon {
    font-size: 12px;
    color: #0077B6;
}

.card-clean-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.card-clean-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.card-clean-due {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

.card-clean-due i {
    font-size: 12px;
    color: #9ca3af;
}

.card-clean-due.muted {
    color: #9ca3af;
}

/* Card actions */
.card-clean-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.btn-complete-clean {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #22c55e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-complete-clean:hover {
    background: #16a34a;
}

.btn-expand-clean {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-expand-clean:hover {
    background: #e5e7eb;
}

.btn-expand-clean.expanded {
    background: #0077B6;
    color: #ffffff;
}

/* Series content expansion */
.reminder-card-clean .series-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.reminder-card-clean .series-content.collapsed {
    display: none;
}

.reminder-card-clean .series-content.expanded {
    display: block;
}

/* Nested occurrence cards inside expanded series */
.reminder-card-clean .occurrences-list .reminder-card-clean {
    margin-left: 8px;
    border-left-width: 3px;
    box-shadow: none;
    background: #fafafa;
}

/* Loading state */
.reminder-card-clean .loading-occurrences {
    text-align: center;
    padding: 16px;
    color: #9ca3af;
    font-size: 14px;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .reminder-card-clean {
        padding: 14px;
    }
    
    .card-clean-pet-photo {
        width: 32px;
        height: 32px;
    }
    
    .card-clean-title {
        font-size: 16px;
    }
    
    .card-clean-actions {
        flex-direction: column;
    }
    
    .btn-complete-clean,
    .btn-expand-clean {
        width: 100%;
    }
}

/* ====================================
   Pet AI Chat File Attachments
   ==================================== */

/* File preview area before sending */
.file-preview-area {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.file-preview-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 6px 8px;
}

.file-preview-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.file-preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-thumbnail i {
    font-size: 20px;
    color: #6b7280;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-info .file-name {
    display: block;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-info .file-size {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}

.file-preview-area .btn-icon.remove-file {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-area .btn-icon.remove-file:hover {
    background: #fecaca;
}

/* Attachment Picker Menu */
.attachment-picker-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 180px;
    z-index: 10000;
    animation: fadeInUp 0.15s ease-out;
}

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

.attachment-picker-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.attachment-picker-option:hover {
    background: #f3f4f6;
}

.attachment-picker-option i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #0077B6;
}

/* Message attachments in chat history - SMALL compact style */
.message-attachment {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
    border: 1px solid rgba(0,0,0,0.08);
}

.message-attachment img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.message-attachment .attachment-icon {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-attachment .attachment-name {
    font-size: 12px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* ================================================
   Proposed Updates Card Styles (Pet AI Chat)
   ================================================ */

.proposed-updates-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    animation: fadeInUp 0.3s ease;
}

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

.proposed-updates-card.dismissed {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.proposed-updates-card .updates-content {
    background: linear-gradient(135deg, #f0f9f6 0%, #e8f5f0 100%);
    border: 1px solid #2AA876;
    border-radius: 16px;
    padding: 16px;
    flex: 1;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(42, 168, 118, 0.1);
}

.proposed-updates-card .updates-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.proposed-updates-card .updates-header .updates-icon {
    font-size: 20px;
}

.proposed-updates-card .updates-header h4 {
    margin: 0;
    color: #1a7f5a;
    font-size: 16px;
    font-weight: 600;
}

.proposed-updates-card .updates-description {
    color: #4a5568;
    font-size: 13px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.proposed-updates-card .update-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.proposed-updates-card .update-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.proposed-updates-card .update-item:hover {
    border-color: #2AA876;
    box-shadow: 0 2px 6px rgba(42, 168, 118, 0.1);
}

.proposed-updates-card .update-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.proposed-updates-card .update-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #2AA876;
    cursor: pointer;
}

.proposed-updates-card .update-details {
    flex: 1;
    min-width: 0;
}

.proposed-updates-card .update-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2px;
}

.proposed-updates-card .update-values {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.proposed-updates-card .current-value {
    color: #9ca3af;
    text-decoration: line-through;
}

.proposed-updates-card .new-value {
    color: #2AA876;
    font-weight: 500;
}

.proposed-updates-card .edit-update-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.proposed-updates-card .edit-update-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.proposed-updates-card .updates-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.proposed-updates-card .updates-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 500;
}

.proposed-updates-card .updates-actions .btn-primary {
    background: #2AA876;
    border-color: #2AA876;
}

.proposed-updates-card .updates-actions .btn-primary:hover {
    background: #239b6a;
}

.proposed-updates-card .updates-actions .btn-secondary {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.proposed-updates-card .updates-actions .btn-secondary:hover {
    background: #f3f4f6;
}

.proposed-updates-card.applied .updates-content {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.proposed-updates-card .applied-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #16a34a;
    font-weight: 500;
    font-size: 14px;
    justify-content: center;
    padding: 8px;
}

.proposed-updates-card .applied-message i {
    font-size: 16px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .proposed-updates-card .updates-content {
        max-width: 100%;
    }
    
    .proposed-updates-card .updates-actions {
        flex-direction: column;
    }
    
    .proposed-updates-card .updates-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Edit Update Modal Styles */
.edit-update-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}

.edit-update-modal {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.edit-update-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.edit-update-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.edit-update-modal-header .close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    font-size: 18px;
}

.edit-update-modal-header .close-modal-btn:hover {
    color: #1f2937;
}

.edit-update-form {
    padding: 20px;
}

.edit-form-field {
    margin-bottom: 16px;
}

.edit-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.edit-form-field label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.edit-form-field label.checkbox-label input {
    width: auto;
    margin: 0;
}

.edit-form-field input[type="text"],
.edit-form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.edit-form-field input[type="text"]:focus,
.edit-form-field select:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.edit-update-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.edit-update-modal-actions .btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.edit-update-modal-actions .btn-primary {
    background: #0077B6;
    color: white;
}

.edit-update-modal-actions .btn-primary:hover {
    background: #005f92;
}

.edit-update-modal-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.edit-update-modal-actions .btn-secondary:hover {
    background: #e5e7eb;
}

/* Email Verification Modal */
#email-verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.email-verification-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.email-verification-modal-content .modal-header {
    background: #0077B6;
    color: white;
    padding: 20px 24px;
    text-align: center;
}

.email-verification-modal-content .modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.email-verification-modal-content .modal-body {
    padding: 24px;
    text-align: center;
}

.email-verification-modal-content .modal-body p {
    margin-bottom: 16px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.verification-email-display {
    font-weight: 600;
    color: #0077B6;
    margin-bottom: 24px !important;
}

.verification-code-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.verification-digit {
    width: 48px;
    height: 56px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.verification-digit:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.verification-digit.filled {
    border-color: #2AA876;
    background: #f0fdf4;
}

.verification-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.verification-actions {
    margin-bottom: 16px;
}

.verification-actions .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

.resend-code-section {
    color: #6b7280;
    font-size: 14px;
}

.resend-code-section .btn-link {
    background: none;
    border: none;
    color: #0077B6;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: underline;
}

.resend-code-section .btn-link:hover {
    color: #005f92;
}

.resend-code-section .btn-link:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .verification-digit {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
    
    .email-verification-modal-content {
        width: 95%;
    }
}

/* Add Pet Welcome Step - Neon Style */
.add-pet-welcome-step {
    background: radial-gradient(circle at center, #008FE4 0%, #76B9E1 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 400px;
    border-radius: 0 0 12px 12px;
}

.add-pet-welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.add-pet-welcome-neon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.add-pet-welcome-neon .welcome-word {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 30px rgba(255, 255, 255, 0.4);
    animation: neonPulse 2s ease-in-out infinite;
    clip-path: none !important;
    opacity: 1 !important;
}

.add-pet-welcome-neon .pet-name-neon {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6);
    opacity: 1 !important;
    transform: scale(1) !important;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                     0 0 20px rgba(255, 255, 255, 0.6),
                     0 0 30px rgba(255, 255, 255, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1),
                     0 0 40px rgba(255, 255, 255, 0.8),
                     0 0 60px rgba(255, 255, 255, 0.6);
    }
}

.add-pet-welcome-features {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 30px;
    text-align: left;
}

.add-pet-welcome-features .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #333;
    font-size: 1rem;
}

.add-pet-welcome-features .checkmark {
    color: #2AA876;
    font-weight: bold;
}

.add-pet-welcome-step .btn-light-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-pet-welcome-step .btn-light-outline:hover {
    background: white;
    color: #0077B6;
}

/* Add Pet Modal Swiper Styles */
#addPet-swiper-container {
    background: white;
    min-height: 450px;
}

#addPet-swiper-container .swiper-slide {
    height: auto !important;
    min-height: 400px;
    background: white;
}

/* Welcome step in Add Pet modal - MUST use high specificity to override swiper defaults */
#addPet-swiper-container .swiper-slide.add-pet-welcome-step,
#addPetModal .add-pet-welcome-step {
    background: radial-gradient(circle at center, #008FE4 0%, #76B9E1 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 450px !important;
}
