.mascota-dashboard,
.mascota-dashboard * {
    box-sizing: border-box;
}

.mascota-dashboard {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.user-tier-badge {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

/* Grid & Cards */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    display: flow-root;
    /* Creates BFC to contain floats/margins */
    width: 100%;
    position: relative;
}

.dashboard-card:hover {
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card p {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 15px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
    gap: 8px;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.button-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.button-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fafc;
}

/* Modal Styles */
.mascota-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 28px;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #64748b;
}

.modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.modal-header h4 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
    font-weight: 800;
}

.modal-header p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
}

/* Form Styles */
.mascota-form .form-group {
    margin-bottom: 20px;
}

.mascota-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.mascota-form input[type="text"],
.mascota-form input[type="number"],
.mascota-form input[type="date"],
.mascota-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.2s;
    background: #f8fafc;
}

.mascota-form input:focus,
.mascota-form select:focus {
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
}

.file-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.file-upload-label:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.file-upload-label .dashicons {
    margin-right: 10px;
    font-size: 24px;
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 35px;
}

.button-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.button-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .user-tier-badge {
        align-self: flex-start;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .pets-grid {
        grid-template-columns: 1fr;
    }
}

/* Themes */
.client-dashboard {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
}

.vet-dashboard {
    --primary-color: #10b981;
    --primary-hover: #059669;
}

.seller-dashboard {
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
}

/* Pet Grid & Cards */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
}

.pet-card-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
}

.pet-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

.pet-photo {
    height: 200px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pet-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.pet-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pet-info h4 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
}

.pet-meta {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pet-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.button-small {
    background-size: cover;
    background-position: center;
    margin: 0 auto 20px;
    border: 5px solid #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pet-details-header h3 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #0f172a;
    font-weight: 800;
}

.pet-badge {
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pet-details-body {
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 16px;
}

.detail-row strong {
    color: #64748b;
    font-weight: 500;
}

.detail-row span {
    color: #0f172a;
    font-weight: 600;
}

.qr-section {
    margin-top: 30px;
    text-align: center;
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.qr-section p {
    margin: 0 0 15px;
    font-weight: 700;
    color: #475569;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: #fff;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

.qr-placeholder img {
    max-width: 100%;
    height: auto;
}

/* Share Section */
.share-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.button.full-width {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}