/* Modern Card Styles */
.modern-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    border-radius: 1rem !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s ease !important;
    border: none !important;
    overflow: hidden !important;
    width: 100% !important; /* Full width */
    margin: 0 !important; /* Remove side margins */
    padding: 0.5rem !important; /* Reduced padding for tighter fit */
}

.modern-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-4px) !important;
}

.modern-card-selected {
    border: 2px solid #7dd3fc !important;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe) !important;
}

/* Pet Card in Carousel */
.pet-card {
    cursor: pointer !important;
    max-height: 110px !important;
    border-radius: 0.875rem !important;
    width: 100% !important; /* Full width within container */
    max-width: 200px !important; /* Slightly larger max-width for better fit */
    margin: 0 0.25rem !important; /* Minimal side spacing */
}

.pet-card .pet-image {
    width: 4.5rem !important;
    height: 4.5rem !important;
    border-radius: 9999px !important;
    object-fit: cover !important;
    border: 3px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.pet-card .text-left {
    flex-grow: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding-left: 0.5rem !important;
}

/* Pet Profile Styles */
.pet-profile {
    padding: 0.5rem !important;
    width: 100% !important; /* Full width */
    margin-bottom: 2rem !important; /* Add this line to create a gap */
}

.pet-profile .pet-image {
    width: 6rem !important;
    height: 6rem !important;
    border-radius: 9999px !important;
    object-fit: cover !important;
    border: 3px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.pet-profile .flex > div:nth-child(2) {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.pet-profile .flex > div:nth-child(2) .flex {
    gap: 0.75rem !important;
}

.pet-details {
    margin-top: 1rem !important;
    padding: 1rem !important;
    background: none !important;
    border-radius: 0.75rem !important;
    width: 100% !important;
}

.pet-details i {
    width: 1.5rem !important;
    text-align: center !important;
    color: #6b7280 !important;
}

/* Modern Scrollbar */
.modern-scroll {
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #60a5fa #eff6ff !important;
    width: 100% !important; /* Full width */
    padding: 0 !important; /* Remove padding */
}

.modern-scroll::-webkit-scrollbar {
    height: 8px !important;
}

.modern-scroll::-webkit-scrollbar-thumb {
    background: #60a5fa !important;
    border-radius: 4px !important;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1) !important;
}

.modern-scroll::-webkit-scrollbar-track {
    background: #eff6ff !important;
    border-radius: 4px !important;
}

/* Modern Tab Styles */
.modern-tabs {
    display: flex !important;
    gap: 0.75rem !important;
    padding: 0.375rem !important;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0) !important;
    border-radius: 0.75rem !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important; /* Full width */
    margin: 0 !important;
}

.modern-tab {
    flex: 1 !important;
    padding: 0.75rem 1.25rem !important;
    text-align: center !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.modern-tab.active {
    background: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.modern-tab:hover:not(.active) {
    background: #cbd5e1 !important;
    color: #1e293b !important;
}

/* Modern Button Styles */
.modern-btn {
    padding: 0.375rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    min-width: 3rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
}

.modern-btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3) !important;
}

.modern-btn-secondary {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    color: #ffffff !important;
}

.modern-btn-secondary:hover {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.3) !important;
}

.modern-btn-danger {
    background: linear-gradient(135deg, #f87171, #ef4444) !important;
    color: #ffffff !important;
}

.modern-btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3) !important;
}

/* Modern Input Styles */
.modern-input {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

.modern-input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
    outline: none !important;
}

/* Modern Popup Styles */
.modern-popup {
    animation: fadeIn 0.4s ease !important;
    backdrop-filter: blur(4px) !important;
    width: 100% !important; /* Full width */
    padding: 0 !important;
}

.modern-popup .modern-card {
    transform: scale(0.9) !important;
    transition: transform 0.4s ease !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    width: 90% !important; /* Slightly less than full width for popup */
    max-width: none !important; /* Remove max-width restriction */
    margin: 0 auto !important;
}

.modern-popup:not(.hidden) .modern-card {
    transform: scale(1) !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Feature Card Styles */
.feature-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    border-radius: 0.875rem !important;
    padding: 1rem !important; /* Reduced padding */
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important; /* Full width */
    margin-top: 1rem !important;
}

.feature-card:hover {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Spinner */
.fa-spinner {
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Documents Feature Card */
.feature-card.documents-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    border-radius: 0.875rem !important;
    padding: 1rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    margin: 0 !important;
}

.feature-card.documents-card:hover {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}